QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#645229#7055. A Hard ProblemsurenjamtsWA 55ms3656kbC++17288b2024-10-16 17:20:102024-10-16 17:20:17

Judging History

你现在查看的是最新测评结果

  • [2024-10-16 17:20:17]
  • 评测
  • 测评结果:WA
  • 用时:55ms
  • 内存:3656kb
  • [2024-10-16 17:20:10]
  • 提交

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'