QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#135402 | #5574. Julienne the Deck | hano# | WA | 1ms | 3596kb | C++20 | 266b | 2023-08-05 14:52:12 | 2023-08-05 14:52:16 |
Judging History
answer
#include<bits/stdc++.h>
using namespace std;
int main(){
ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
long long n;
cin>>n;
if(n < 3){
cout<<n;
return 0;
}
long long ans = n*2;
ans %= 998244353;
cout<<ans<<endl;
return 0;
}
詳細信息
Test #1:
score: 100
Accepted
time: 1ms
memory: 3576kb
input:
1
output:
1
result:
ok 1 number(s): "1"
Test #2:
score: 0
Accepted
time: 1ms
memory: 3596kb
input:
1000000000000
output:
516560941
result:
ok 1 number(s): "516560941"
Test #3:
score: 0
Accepted
time: 1ms
memory: 3596kb
input:
3
output:
6
result:
ok 1 number(s): "6"
Test #4:
score: 0
Accepted
time: 1ms
memory: 3528kb
input:
4
output:
8
result:
ok 1 number(s): "8"
Test #5:
score: -100
Wrong Answer
time: 0ms
memory: 3416kb
input:
2
output:
2
result:
wrong answer 1st numbers differ - expected: '1', found: '2'