#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;
}
# |
결과 |
실행 시간 |
메모리 |
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 |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Halted |
0 ms |
0 KB |
- |