Submission #19812

# Submission time Handle Problem Language Result Execution time Memory
19812 2016-02-25T05:50:35 Z xhae 악수 (kriii4_D) C++14
100 / 100
0 ms 1716 KB
#include <math.h>
#include <stdio.h>
#include <string.h>
#include <vector>
#include <string>
#include <queue>
#include <map>
#include <algorithm>
#include <cmath>
#include <iostream>
#include <sstream>
#include <set>
using namespace std;

const int golden[40] = {0, 1, 2, 400000006, 547619056, 776556788, 649618969, 660677520, 332992873, 860956289, 894691935, 387211592, 201091911, 414301754, 630035167, 693965875, 139912848, 399085610, 486751485, 539560614, 703317323, 624582569, 87706883, 630264151, 268171845, 665111277, 298577755, 472645440, 949565687, 483994349, 343701039, 507872348, 668102342, 491390682, 428559695, 966526909, 661529157, 998217451, 694686500, 107329975, };

int main()
{
  int n;
  cin >> n;
  cout << golden[n-1] << endl;
}
# Verdict Execution time Memory Grader output
1 Correct 0 ms 1716 KB Output is correct
2 Correct 0 ms 1716 KB Output is correct
3 Correct 0 ms 1716 KB Output is correct
4 Correct 0 ms 1716 KB Output is correct
5 Correct 0 ms 1716 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 1716 KB Output is correct
2 Correct 0 ms 1716 KB Output is correct
3 Correct 0 ms 1716 KB Output is correct
4 Correct 0 ms 1716 KB Output is correct
5 Correct 0 ms 1716 KB Output is correct
6 Correct 0 ms 1716 KB Output is correct
7 Correct 0 ms 1716 KB Output is correct
8 Correct 0 ms 1716 KB Output is correct
9 Correct 0 ms 1716 KB Output is correct
10 Correct 0 ms 1716 KB Output is correct
11 Correct 0 ms 1716 KB Output is correct
12 Correct 0 ms 1716 KB Output is correct
13 Correct 0 ms 1716 KB Output is correct
14 Correct 0 ms 1716 KB Output is correct
15 Correct 0 ms 1716 KB Output is correct
16 Correct 0 ms 1716 KB Output is correct
17 Correct 0 ms 1716 KB Output is correct
18 Correct 0 ms 1716 KB Output is correct
19 Correct 0 ms 1716 KB Output is correct
20 Correct 0 ms 1716 KB Output is correct
21 Correct 0 ms 1716 KB Output is correct
22 Correct 0 ms 1716 KB Output is correct
23 Correct 0 ms 1716 KB Output is correct
24 Correct 0 ms 1716 KB Output is correct
25 Correct 0 ms 1716 KB Output is correct
26 Correct 0 ms 1716 KB Output is correct
27 Correct 0 ms 1716 KB Output is correct
28 Correct 0 ms 1716 KB Output is correct
29 Correct 0 ms 1716 KB Output is correct
30 Correct 0 ms 1716 KB Output is correct
31 Correct 0 ms 1716 KB Output is correct
32 Correct 0 ms 1716 KB Output is correct
33 Correct 0 ms 1716 KB Output is correct
34 Correct 0 ms 1716 KB Output is correct
35 Correct 0 ms 1716 KB Output is correct