結果

問題 No.1028 闇討ち
ユーザー tailstails
提出日時 2020-04-20 12:50:38
言語 cLay
(20240104-1)
結果
AC  
実行時間 55 ms / 2,000 ms
コード長 142 bytes
コンパイル時間 1,918 ms
コンパイル使用メモリ 159,804 KB
実行使用メモリ 39,056 KB
最終ジャッジ日時 2023-09-19 00:37:11
合計ジャッジ時間 6,088 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
5,452 KB
testcase_01 AC 2 ms
5,476 KB
testcase_02 AC 2 ms
5,416 KB
testcase_03 AC 1 ms
5,416 KB
testcase_04 AC 2 ms
5,532 KB
testcase_05 AC 2 ms
5,596 KB
testcase_06 AC 2 ms
5,628 KB
testcase_07 AC 2 ms
5,472 KB
testcase_08 AC 2 ms
5,524 KB
testcase_09 AC 4 ms
12,464 KB
testcase_10 AC 4 ms
12,332 KB
testcase_11 AC 11 ms
21,520 KB
testcase_12 AC 46 ms
36,768 KB
testcase_13 AC 49 ms
36,764 KB
testcase_14 AC 25 ms
28,220 KB
testcase_15 AC 9 ms
19,420 KB
testcase_16 AC 53 ms
38,936 KB
testcase_17 AC 54 ms
39,056 KB
testcase_18 AC 52 ms
39,052 KB
testcase_19 AC 53 ms
38,932 KB
testcase_20 AC 54 ms
38,880 KB
testcase_21 AC 55 ms
38,892 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

ll a[2d3][4d3],n,t,w,y,s;{rd(n);rep(y,n,n+n)rep(x,n)rd(t),a[t][y-x]++,a[t][y+x]++,w+=y+1;rep(t,1,n+1)for(y=0,s=n;s>0;s-=a[t][y++])w-=s;wt(w);}
0