Submission #19662

# Submission time Handle Problem Language Result Execution time Memory
19662 2016-02-25T04:18:51 Z jeapi 동전 (kriii4_E) C++
0 / 100
0 ms 1720 KB
#include<iostream>
using namespace std;
typedef long long ll;
ll D[251];
int main() {
	D[0] = 1;
	D[1] = 1;
	D[2] = 1;
	for (int i = 3; i <= 250; i++) {
		D[i] = (D[i - 1] * 2 )% 1000000007;
	}
	int t;
	cin >> t;
	cout << D[t] << endl;
}
# Verdict Execution time Memory Grader output
1 Correct 0 ms 1720 KB Output is correct
2 Correct 0 ms 1720 KB Output is correct
3 Correct 0 ms 1720 KB Output is correct
4 Correct 0 ms 1720 KB Output is correct
5 Correct 0 ms 1720 KB Output is correct
6 Incorrect 0 ms 1720 KB Output isn't correct
7 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Halted 0 ms 0 KB -