QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#645229 | #7055. A Hard Problem | surenjamts | WA | 55ms | 3656kb | C++17 | 288b | 2024-10-16 17:20:10 | 2024-10-16 17:20:17 |
Judging History
answer
#include<bits/stdc++.h>
using namespace std;
#define int long long
#define pb push_back
#define F first
#define S second
signed main(){
int t, n;
cin >> t;
while( t -- ){
cin >> n;
if( n == 2 || n == 3 ){
cout << n << "\n";
}else
cout << n-1 << "\n";
}
}
詳細信息
Test #1:
score: 100
Accepted
time: 0ms
memory: 3636kb
input:
4 2 3 4 5
output:
2 3 3 4
result:
ok 4 lines
Test #2:
score: -100
Wrong Answer
time: 55ms
memory: 3656kb
input:
100000 6 18 54 162 486 1458 4374 13122 39366 118098 354294 1062882 3188646 9565938 28697814 86093442 258280326 774840978 324522916 973568748 920706226 762118660 286355962 859067886 577203640 731610911 194832715 584498145 753494426 260483260 781449780 344349322 33047957 99143871 297431613 892294839 6...
output:
5 17 53 161 485 1457 4373 13121 39365 118097 354293 1062881 3188645 9565937 28697813 86093441 258280325 774840977 324522915 973568747 920706225 762118659 286355961 859067885 577203639 731610910 194832714 584498144 753494425 260483259 781449779 344349321 33047956 99143870 297431612 892294838 67688449...
result:
wrong answer 1st lines differ - expected: '4', found: '5'