QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#691701#9296. Golden SpiritBlizzardWA 2ms3660kbC++23354b2024-10-31 12:41:582024-10-31 12:41:58

Judging History

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

  • [2024-10-31 12:41:58]
  • 评测
  • 测评结果:WA
  • 用时:2ms
  • 内存:3660kb
  • [2024-10-31 12:41:58]
  • 提交

answer

#include <bits/stdc++.h>
using namespace std;

int main()
{
	ios::sync_with_stdio(0),cin.tie(0),cout.tie(0);
	int t;
	cin >> t;
	while(t--)
	{
		int n , x , m;
		cin >> n >> x >> m;
		int nowt = 2 * n * m;
		if(nowt >= x)
			cout << nowt * 2 << '\n';
		else	
		{
			cout << (x - nowt) + nowt * 2 << '\n';
		}
	}
	
	return 0;
} 

 

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 0ms
memory: 3640kb

input:

3
2 2 2
3 1 10
11 45 14

output:

16
120
616

result:

ok 3 lines

Test #2:

score: -100
Wrong Answer
time: 2ms
memory: 3660kb

input:

10000
3050395 689380 200550
5885929 822329 269033
6682339 28476 346976
9571342 934182 89292
9928491 668975 401621
6524373 173981 202472
5331629 482403 456644
9661686 231207 298636
5454412 961564 632648
5186684 9125 590489
8036028 738212 913802
1211903 553317 790831
6044436 222947 254859
2202128 6558...

output:

-551555480
-1040214972
-1342137476
-107509898
-772631875
1201626144
-1179645109
-1781294025
-565797156
1472665712
-2110497196
-1763949756
-1362411664
-296329263
-2028541170
-625583541
2136220744
-807648048
-1529496531
74466060
801811348
157894424
-1802708872
-1510220054
-2136827600
-47449200
-186788...

result:

wrong answer 1st lines differ - expected: '2447026869000', found: '-551555480'