Submission #5566075
Source Code Expand
#include <bits/stdc++.h> using namespace std; #define REP(i,n) for(int i=0; i < (n); ++i) #define REPR(i,n) for(int i=(n); i >= 0; --i) #define FOR(i, m, n) for(int i = (m); i < (n); ++i) typedef long long ll; int main(){ int N, M; cin >> N >> M; double ans = 0; int beki = 1; double sipai = 1; for(int i=0; i < M; ++i){ beki*=2; } int time = (N-M)*100+M*1900; int sumt = time; while(sumt <= 1e6 * time){ ans += (double) sumt/beki*sipai; sipai *= (double)(beki-1)/beki; sumt += time; } cout << (int) ans << endl; return 0; }
Submission Info
Submission Time | |
---|---|
Task | C - HSI |
User | tune |
Language | C++14 (GCC 5.4.1) |
Score | 0 |
Code Size | 606 Byte |
Status | TLE |
Exec Time | 2103 ms |
Memory | 256 KB |
Judge Result
Set Name | Sample | All | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 0 / 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 | 4 ms | 256 KB |
example_1 | TLE | 2103 ms | 256 KB |
example_2 | TLE | 2103 ms | 256 KB |
handmade_0 | AC | 4 ms | 256 KB |
rand_0 | TLE | 2103 ms | 256 KB |
rand_1 | TLE | 2103 ms | 256 KB |
rand_2 | TLE | 2103 ms | 256 KB |
rand_3 | TLE | 2103 ms | 256 KB |
rand_4 | TLE | 2103 ms | 256 KB |
rand_5 | TLE | 2103 ms | 256 KB |
rand_6 | TLE | 2103 ms | 256 KB |
rand_7 | TLE | 2103 ms | 256 KB |
rand_8 | TLE | 2103 ms | 256 KB |
rand_9 | TLE | 2103 ms | 256 KB |