Submission #19553767
Source Code Expand
Copy
#include <bits/stdc++.h> using namespace std; typedef long long int ll; typedef pair<ll, ll> pll; #define FOR(i, n, m) for(ll (i)=(m);(i)<(n);++(i)) #define REP(i, n) FOR(i,n,0) #define OF64 std::setprecision(40) const ll MOD = 998244353; const ll INF = (ll) 1e15; int main() { cin.tie(0); ios::sync_with_stdio(false); ll D; cin >> D; ll ans = 1; REP(_, D - 1) { ans = (ans * 2LL) % MOD; } cout << ans << endl; return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - Dodecagon |
User | coco18000 |
Language | C++ (GCC 9.2.1) |
Score | 0 |
Code Size | 496 Byte |
Status | WA |
Exec Time | 12 ms |
Memory | 3584 KB |
Compile Error
./Main.cpp: In function ‘int main()’: ./Main.cpp:8:29: warning: unnecessary parentheses in declaration of ‘_’ [-Wparentheses] 8 | #define FOR(i, n, m) for(ll (i)=(m);(i)<(n);++(i)) | ^ ./Main.cpp:9:19: note: in expansion of macro ‘FOR’ 9 | #define REP(i, n) FOR(i,n,0) | ^~~ ./Main.cpp:21:5: note: in expansion of macro ‘REP’ 21 | REP(_, D - 1) { | ^~~
Judge Result
Set Name | Sample | All | ||||||
---|---|---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 0 / 500 | ||||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | example0.txt |
All | 000.txt, 001.txt, 002.txt, 003.txt, 004.txt, 005.txt, 006.txt, 007.txt, 008.txt, 009.txt, 010.txt, example0.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
000.txt | WA | 11 ms | 3576 KB |
001.txt | WA | 2 ms | 3468 KB |
002.txt | WA | 2 ms | 3508 KB |
003.txt | WA | 12 ms | 3572 KB |
004.txt | WA | 6 ms | 3576 KB |
005.txt | WA | 2 ms | 3508 KB |
006.txt | WA | 1 ms | 3492 KB |
007.txt | WA | 4 ms | 3504 KB |
008.txt | WA | 9 ms | 3544 KB |
009.txt | WA | 8 ms | 3584 KB |
010.txt | WA | 2 ms | 3584 KB |
example0.txt | AC | 2 ms | 3524 KB |