# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
19879 |
2016-02-25T06:31:48 Z |
yongwhan |
동전 (kriii4_E) |
C++14 |
|
0 ms |
1708 KB |
#include<bits/stdc++.h>
using namespace std;
const int mod=1e9+7;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(0);
cout.tie(0);
int n; cin>>n; n-=2;
long long ret=1;
for (int i=0; i<n; i++)
ret=(ret*2)%mod;
cout << ret << endl;
return 0;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
1708 KB |
Output is correct |
2 |
Correct |
0 ms |
1708 KB |
Output is correct |
3 |
Correct |
0 ms |
1708 KB |
Output is correct |
4 |
Correct |
0 ms |
1708 KB |
Output is correct |
5 |
Correct |
0 ms |
1708 KB |
Output is correct |
6 |
Incorrect |
0 ms |
1708 KB |
Output isn't correct |
7 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Halted |
0 ms |
0 KB |
- |