Submission #1794124
Source Code Expand
#include<cstdio> #include<cstdlib> #include<cstring> #include<cmath> #include<cctype> #include<iostream> #include<string> #include<vector> #include<queue> #include<deque> #include<algorithm> #include<utility> #define REP(i,x) for(int i=0; i<(int)(x); i++) // 0 <= i < x #define REPS(i,x) for(int i=1; i<=(int)(x); i++) // 0 < i <= x #define RREP(i,x) for(int i=((int)(x)-1); i>=0; i--) // x > i >= 0 #define RREPS(i,x) for(int i=((int)(x)); i>0; i--) // x >= i > 0 #define INF 999999999 typedef long long ll; using namespace std; int dx[] = {1, -1, 0, 0}; int dy[] = {0, 0, 1, -1}; int main(void){ int n, m; cin >> n >> m; cout << (int) pow(2.0, m) * (100*(n-m) + 1900*m) << endl; return 0; }
Submission Info
Submission Time | |
---|---|
Task | C - HSI |
User | yna87 |
Language | C++14 (GCC 5.4.1) |
Score | 300 |
Code Size | 746 Byte |
Status | AC |
Exec Time | 1 ms |
Memory | 256 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 300 / 300 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | example_0, example_1, example_2 |
All | example_0, example_1, example_2, handmade_0, rand_0, rand_1, rand_2, rand_3, rand_4, rand_5, rand_6, rand_7, rand_8, rand_9 |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
example_0 | AC | 1 ms | 256 KB |
example_1 | AC | 1 ms | 256 KB |
example_2 | AC | 1 ms | 256 KB |
handmade_0 | AC | 1 ms | 256 KB |
rand_0 | AC | 1 ms | 256 KB |
rand_1 | AC | 1 ms | 256 KB |
rand_2 | AC | 1 ms | 256 KB |
rand_3 | AC | 1 ms | 256 KB |
rand_4 | AC | 1 ms | 256 KB |
rand_5 | AC | 1 ms | 256 KB |
rand_6 | AC | 1 ms | 256 KB |
rand_7 | AC | 1 ms | 256 KB |
rand_8 | AC | 1 ms | 256 KB |
rand_9 | AC | 1 ms | 256 KB |