Submission #1759388
Source Code Expand
#include<bits/stdc++.h>
#define REP(x,y,z) for(int x=y;x<=z;x++)
#define FORD(x,y,z) for(int x=y;x>=z;x--)
#define MSET(x,y) memset(x,y,sizeof(x))
#define FOR(x,y) for(__typeof(y.begin()) x=y.begin();x!=y.end();x++)
#define F first
#define S second
#define MP make_pair
#define PB push_back
#define SZ size()
#define M
void RI(){}
template<typename... T>
void RI( int& head, T&... tail ) {
scanf("%d",&head);
RI(tail...);
}
using namespace std;
typedef long long LL;
int main()
{
int n,m;
LL ans;
while(~scanf("%d %d",&n,&m))
{
ans = 100*(n-m) + 1900*m;
while(m)
{
ans *= 2;
m--;
}
printf("%lld\n",ans);
}
return 0;
}
Submission Info
| Submission Time | |
|---|---|
| Task | C - HSI |
| User | Nekosyndrome |
| Language | C++14 (GCC 5.4.1) |
| Score | 300 |
| Code Size | 686 Byte |
| Status | AC |
| Exec Time | 6 ms |
| Memory | 764 KiB |
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 | 6 ms | 764 KiB |
| example_1 | AC | 1 ms | 256 KiB |
| example_2 | AC | 1 ms | 256 KiB |
| handmade_0 | AC | 1 ms | 256 KiB |
| rand_0 | AC | 1 ms | 256 KiB |
| rand_1 | AC | 1 ms | 256 KiB |
| rand_2 | AC | 1 ms | 256 KiB |
| rand_3 | AC | 1 ms | 256 KiB |
| rand_4 | AC | 1 ms | 256 KiB |
| rand_5 | AC | 1 ms | 256 KiB |
| rand_6 | AC | 1 ms | 256 KiB |
| rand_7 | AC | 1 ms | 256 KiB |
| rand_8 | AC | 1 ms | 256 KiB |
| rand_9 | AC | 1 ms | 256 KiB |