Submission #5630418
Source Code Expand
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<int,int> Pint; typedef pair<ll, ll> P; //typedef pair<int, pair<int, int>> P; //typedef tuple<int,int,int> T; ll INFL = 1000000000000000010;//10^18 = 2^60 int INF = 2147483600;//10^9 ll MOD = 1000000007; vector<int> dy = {0,0,1,-1}; vector<int> dx = {1,-1,0,0}; int main(void){ int N, M; cin >> N >> M; //Ea = p * 1 + (i-p) * (Ea + 1) //Ea = 1 / p //Ea = 2^M cout << pow(2, M) * (100 * N + 1800 * M) << endl; }
Submission Info
Submission Time | |
---|---|
Task | C - HSI |
User | shogier |
Language | C++14 (GCC 5.4.1) |
Score | 300 |
Code Size | 540 Byte |
Status | AC |
Exec Time | 2 ms |
Memory | 384 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 | 2 ms | 384 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 |