QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#251562#6182. 6G 网络问题dhrwhy0 1ms3624kbC++14420b2023-11-14 20:50:362023-11-14 20:50:37

Judging History

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

  • [2023-11-14 20:50:37]
  • 评测
  • 测评结果:0
  • 用时:1ms
  • 内存:3624kb
  • [2023-11-14 20:50:36]
  • 提交

answer

#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define lc k<<1
#define rc k<<1|1
#define re register
const int N=5e4+10,mod=998244353;
int read()
{
	int x;
	scanf("%d",&x);
	return x;
}
void prt(int x,int op)
{
	if(op==1) cout<<x<<" ";
	if(op==2) cout<<x<<"\n";
}
long long n;
int main()
{
    while(scanf("%lld",&n)!=EOF)
    {
    	cout<<n*(n+1)/2<<"\n";
	}
 	return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 0
Wrong Answer
time: 1ms
memory: 3444kb

input:

91
6643
757
2451
21

output:

4186
22068046
286903
3004926
231

result:

wrong answer 1st numbers differ - expected: '910', found: '4186'

Test #2:

score: 0
Wrong Answer
time: 1ms
memory: 3624kb

input:

273
73
6643
651
1057
757

output:

37401
2701
22068046
212226
559153
286903

result:

wrong answer 1st numbers differ - expected: '4641', found: '37401'

Test #3:

score: 0
Wrong Answer
time: 1ms
memory: 3608kb

input:

294517083
91
1057
24142483
651
519908403
47052741
83811
65793
777824211
282492057
1772893
260160771
16513
280371
244156251
895774971
104070603
12120843
38956323
4829007
73
2451
4196353
3420651
1875531
594847711
16781313
607597851
9768751
13849563
20155611
62750163
1049601

output:

43370156236672986
4186
559153
291429754773886
212226
135152374014959406
1106980241332911
3512183766
2164392321
302505251997798366
39900881275291653
1571575681171
33841813513737606
136347841
39304089006
29806137573265626
401206399782912906
5415345256427106
73457423575746
758797570318326
1165965671752...

result:

wrong answer 1st numbers differ - expected: '5054502178446', found: '43370156236672986'

Test #4:

score: 0
Wrong Answer
time: 0ms
memory: 3544kb

input:

131091051
282492057
262657
59293
1049601
65793
24142483
5767203
895774971
519908403
73
117993
1875531
38956323
16781313
268451841
4161
352294131
2451
130683
16513
47052741
391251
62750163
260160771
15751
141170043
280371
13849563
244156251
21
1772893
148048057
83811
67117057
163060131
3420651
885386...

output:

8592431891687826
39900881275291653
34494481153
1757859571
550831654401
2164392321
291429754773886
16630318105206
401206399782912906
135152374014959406
2701
6961233021
1758809203746
758797570318326
140806241392641
36033195602370561
8659041
62055577544669646
3004926
8539088586
136347841
11069802413329...

result:

wrong answer 1st numbers differ - expected: '1500992533950', found: '8592431891687826'

Test #5:

score: 0
Wrong Answer
time: 1ms
memory: 3456kb

input:

705938331
815759283
131091051
12120843
88538691
373320363
887533473
15751
14763
130683
163060131
65793
1057
47052741
28403571
9768751
777824211
62750163
387440173
20155611
38956323
594847711
294517083
651
3420651
2451
25416723
273
4196353
214373523
73
1049601
91
24142483
83811
282492057
924483
17728...

output:

249174463940501946
332731604308216686
8592431891687826
73457423575746
3919549946266086
69684046901886066
393857833291487601
124054876
108980466
8539088586
13294303242398646
2164392321
559153
1106980241332911
403381436977806
47714252934376
302505251997798366
1968791509638366
75054944020855051
2031243...

result:

wrong answer 1st numbers differ - expected: '18756781454670', found: '249174463940501946'

Test #6:

score: 0
Wrong Answer
time: 0ms
memory: 3364kb

input:

1057
6643
4881891
262657
607597851
47465211
294517083
3420651
4785157
67117057
88538691
141170043
244156251
112561491
4196353
1875531
65793
777824211
20155611
5767203
4829007
16781313
2827443
24142483
73
214373523
12120843
148048057
28403571
163060131
924483
757

output:

559153
22068046
11916432308886
34494481153
184587574573708026
1126473151369866
43370156236672986
5850428342226
11448866149903
2252349703729153
3919549946266086
9964490590895946
29806137573265626
6335044684352286
8804691348481
1758809203746
2164392321
302505251997798366
203124337469466
16630318105206...

result:

wrong answer 1st numbers differ - expected: '34881', found: '559153'

Test #7:

score: 0
Wrong Answer
time: 0ms
memory: 3488kb

input:

25416723
83811
887533473
28403571
492906603
12120843
1057
65793
13849563
924483
88538691
20155611
214373523
4829007
273
131091051
5767203
387440173
16513
705938331
62750163
4881891
815759283
47052741
268451841
67117057
38956323
244156251
777824211
7893291
47465211
59293
352294131
294517083
757
16781...

output:

323004916737726
3512183766
393857833291487601
403381436977806
121478459886953106
73457423575746
559153
2164392321
95905204570266
427334870886
3919549946266086
203124337469466
22978003788902526
11659656717528
37401
8592431891687826
16630318105206
75054944020855051
136347841
249174463940501946
1968791...

result:

wrong answer 1st numbers differ - expected: '128151117366', found: '323004916737726'

Test #8:

score: 0
Wrong Answer
time: 0ms
memory: 3368kb

input:

7893291
20155611
2451
62750163
38956323
924483
895774971
59293
73
47052741
887533473
260160771
757
65793
532171
9768751
104070603
352294131
607597851
6643
130683
268451841
91
214373523
1057
708123
1875531
4881891
43053283
28403571
262657
2827443

output:

31152025351986
203124337469466
3004926
1968791509638366
758797570318326
427334870886
401206399782912906
1757859571
2701
1106980241332911
393857833291487601
33841813513737606
286903
2164392321
141603252706
47714252934376
5415345256427106
62055577544669646
184587574573708026
22068046
8539088586
360331...

result:

wrong answer 1st numbers differ - expected: '22180147710', found: '31152025351986'

Test #9:

score: 0
Wrong Answer
time: 0ms
memory: 3620kb

input:

519908403
112561491
1875531
88538691
148048057
244156251
373320363
131091051
67117057
21
4881891
4161
16781313
25416723
38956323
2451
62750163
352294131
4785157
43053283
1049601
280371
651
387440173
9768751
607597851
47465211
91
16513
924483
895774971
12120843
28403571
391251
24142483
260160771
1630...

output:

135152374014959406
6335044684352286
1758809203746
3919549946266086
10959113664761653
29806137573265626
69684046901886066
8592431891687826
2252349703729153
231
11916432308886
8659041
140806241392641
323004916737726
758797570318326
3004926
1968791509638366
62055577544669646
11448866149903
926792610065...

result:

wrong answer 1st numbers differ - expected: '11854951405206', found: '135152374014959406'

Test #10:

score: 0
Wrong Answer
time: 0ms
memory: 3460kb

input:

1057
20155611
25416723
28403571
24142483
4196353
15751
12120843
130683
16781313
104070603
21
519908403
1875531
708123
3420651
163060131
141170043
594847711
4785157
65793
7893291
131091051
4881891
651
38956323
260160771
282492057
280371
373320363
6643
16513
43053283
815759283
91
148048057
14763
24415...

output:

559153
203124337469466
323004916737726
403381436977806
291429754773886
8804691348481
124054876
73457423575746
8539088586
140806241392641
5415345256427106
231
135152374014959406
1758809203746
250719445626
5850428342226
13294303242398646
9964490590895946
176921899938393616
11448866149903
2164392321
31...

result:

wrong answer 1st numbers differ - expected: '34881', found: '559153'