Submission #19812

#TimeUsernameProblemLanguageResultExecution timeMemory
19812xhae악수 (kriii4_D)C++14
100 / 100
0 ms1716 KiB
#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 timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...