結果

問題 No.2306 [Cherry 5th Tune C] ウソツキタマシイ
ユーザー tailstails
提出日時 2023-05-19 21:26:17
言語 cLay
(20240104-1)
結果
AC  
実行時間 17 ms / 2,000 ms
コード長 137 bytes
コンパイル時間 2,616 ms
コンパイル使用メモリ 162,200 KB
実行使用メモリ 6,432 KB
最終ジャッジ日時 2023-08-22 23:31:05
合計ジャッジ時間 5,319 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,380 KB
testcase_01 AC 2 ms
4,380 KB
testcase_02 AC 2 ms
4,376 KB
testcase_03 AC 1 ms
4,380 KB
testcase_04 AC 2 ms
4,380 KB
testcase_05 AC 2 ms
4,380 KB
testcase_06 AC 2 ms
4,380 KB
testcase_07 AC 11 ms
6,012 KB
testcase_08 AC 3 ms
4,476 KB
testcase_09 AC 8 ms
5,520 KB
testcase_10 AC 6 ms
4,644 KB
testcase_11 AC 8 ms
5,540 KB
testcase_12 AC 10 ms
5,756 KB
testcase_13 AC 7 ms
5,312 KB
testcase_14 AC 6 ms
4,936 KB
testcase_15 AC 13 ms
5,804 KB
testcase_16 AC 13 ms
5,576 KB
testcase_17 AC 16 ms
6,112 KB
testcase_18 AC 16 ms
6,188 KB
testcase_19 AC 16 ms
6,432 KB
testcase_20 AC 16 ms
6,072 KB
testcase_21 AC 17 ms
6,072 KB
testcase_22 AC 16 ms
6,072 KB
testcase_23 AC 16 ms
6,128 KB
testcase_24 AC 16 ms
6,256 KB
testcase_25 AC 16 ms
6,140 KB
testcase_26 AC 16 ms
6,092 KB
testcase_27 AC 7 ms
5,332 KB
testcase_28 AC 15 ms
6,068 KB
testcase_29 AC 13 ms
5,308 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

ll@n,@m,@a[m],@q,z=sum[i,0,m](a[i]**2);
rep(q){
	ll@c--,@k,@d--;
	z-=a[c]**2+a[d]**2;
	a[c]-=k;
	a[d]+=k;
	z+=a[c]**2+a[d]**2;
	wt(z);
}
0