# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|
19812 | | xhae | 악수 (kriii4_D) | C++14 | | 0 ms | 1716 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#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 |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |