QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#93361#6182. 6G 网络问题xzggzh10 3ms3516kbC++17615b2023-03-31 17:55:142023-03-31 17:55:18

Judging History

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

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2023-03-31 17:55:18]
  • 评测
  • 测评结果:0
  • 用时:3ms
  • 内存:3516kb
  • [2023-03-31 17:55:14]
  • 提交

answer

#include<bits/stdc++.h>
#define For(i,a,b) for(int i=(a);i<=(b);++i)
#define Rep(i,a,b) for(int i=(a);i>=(b);--i)
#define ull unsigned long long
using namespace std;
inline int read()
{
	char c=getchar();int x=0;bool f=0;
	for(;!isdigit(c);c=getchar())f^=!(c^45);
	for(;isdigit(c);c=getchar())x=(x<<1)+(x<<3)+(c^48);
	if(f)x=-x;return x;
}

#define fi first
#define se second
#define pb push_back
#define mkp make_pair
typedef pair<int,int>pii;
typedef vector<int>vi;

#define maxn 4000005
#define inf 0x3f3f3f3f

signed main()
{
	int n;
	while(cin>>n)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: 2ms
memory: 3260kb

input:

91
6643
757
2451
21

output:

4095
22061403
286146
3002475
210

result:

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

Test #2:

score: 0
Wrong Answer
time: 2ms
memory: 3336kb

input:

273
73
6643
651
1057
757

output:

37128
2628
22061403
211575
558096
286146

result:

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

Test #3:

score: 0
Wrong Answer
time: 3ms
memory: 3352kb

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:

-758573441
4095
558096
-980271381
211575
481899259
-381623574
-782867341
16842880
-643291125
-842200212
-384122058
696834179
136331328
649102971
597739903
390599311
-870027113
585791415
-783273261
963163529
2628
3002475
4195328
679464423
18220503
861668913
16779264
674463199
-696009287
718484671
281...

result:

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

Test #4:

score: 0
Wrong Answer
time: 2ms
memory: 3516kb

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:

-354885849
-842200212
134480128
-389683370
-1072692736
16842880
-980271381
198967891
390599311
481899259
2628
518664084
18220503
-783273261
16779264
268443648
8654880
-85842725
3002475
-50976689
136331328
-381623574
-770934453
-86761717
696834179
124039125
966765007
649102971
718484671
597739903
210...

result:

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

Test #5:

score: 0
Wrong Answer
time: 2ms
memory: 3372kb

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:

674356767
-407450693
-354885849
585791415
-789380189
-405220921
544303568
124039125
108965703
-50976689
613716499
16842880
558096
-381623574
227617563
-696009287
-643291125
-86761717
-706209058
281500479
-783273261
861668913
-758573441
211575
679464423
3002475
-271658325
37128
4195328
-592110613
262...

result:

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

Test #6:

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

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:

558096
22061403
40664243
134480128
674463199
-181071985
-758573441
679464423
626037258
67112960
-789380189
966765007
597739903
22445515
4195328
18220503
16842880
-643291125
281500479
198967891
963163529
16779264
748476475
-980271381
2628
-592110613
585791415
-197687684
227617563
613716499
-15299549
...

result:

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

Test #7:

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

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:

-271658325
-782867341
544303568
227617563
-469026265
585791415
558096
16842880
718484671
-15299549
-789380189
281500479
-592110613
963163529
37128
-354885849
198967891
-706209058
136331328
674356767
-86761717
40664243
-407450693
-381623574
268443648
67112960
-783273261
597739903
-643291125
619660807...

result:

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

Test #8:

score: 0
Wrong Answer
time: 2ms
memory: 3320kb

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:

619660807
281500479
3002475
-86761717
-783273261
-15299549
390599311
-389683370
2628
-381623574
544303568
696834179
286146
16842880
-131200233
-696009287
-870027113
-85842725
674463199
22061403
-50976689
268443648
4095
-592110613
558096
-536849313
18220503
40664243
901561395
227617563
134480128
7484...

result:

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

Test #9:

score: 0
Wrong Answer
time: 2ms
memory: 3320kb

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:

481899259
22445515
18220503
-789380189
-197687684
597739903
-405220921
-354885849
67112960
210
40664243
8654880
16779264
-271658325
-783273261
3002475
-86761717
-85842725
626037258
901561395
-1072692736
649102971
211575
-706209058
-696009287
674463199
-181071985
4095
136331328
-15299549
390599311
58...

result:

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

Test #10:

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

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:

558096
281500479
-271658325
227617563
-980271381
4195328
124039125
585791415
-50976689
16779264
-870027113
210
481899259
18220503
-536849313
679464423
613716499
966765007
861668913
626037258
16842880
619660807
-354885849
40664243
211575
-783273261
696834179
-842200212
649102971
-405220921
22061403
1...

result:

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