結果

問題 No.1006 Share an Integer
ユーザー tailstails
提出日時 2020-07-06 20:41:16
言語 cLay
(20240104-1)
結果
AC  
実行時間 113 ms / 2,000 ms
コード長 124 bytes
コンパイル時間 3,300 ms
コンパイル使用メモリ 161,816 KB
実行使用メモリ 38,336 KB
最終ジャッジ日時 2023-09-19 00:44:04
合計ジャッジ時間 4,478 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
5,324 KB
testcase_01 AC 2 ms
5,328 KB
testcase_02 AC 2 ms
5,364 KB
testcase_03 AC 2 ms
5,368 KB
testcase_04 AC 2 ms
5,388 KB
testcase_05 AC 2 ms
5,380 KB
testcase_06 AC 2 ms
5,404 KB
testcase_07 AC 2 ms
5,348 KB
testcase_08 AC 2 ms
5,452 KB
testcase_09 AC 2 ms
5,364 KB
testcase_10 AC 2 ms
5,348 KB
testcase_11 AC 48 ms
23,828 KB
testcase_12 AC 105 ms
36,100 KB
testcase_13 AC 99 ms
38,200 KB
testcase_14 AC 108 ms
38,336 KB
testcase_15 AC 84 ms
34,028 KB
testcase_16 AC 41 ms
19,712 KB
testcase_17 AC 62 ms
23,784 KB
testcase_18 AC 113 ms
34,032 KB
testcase_19 AC 73 ms
32,032 KB
testcase_20 AC 104 ms
34,228 KB
testcase_21 AC 98 ms
38,176 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

ll x,m,d[5d6];{rd(x);rep(i,1,x)rep(m,0,x,i)++d[m];rep(i,x)m<?=d[x+i]=abs(d[x-i]-d[i]-x+2*i);rep(i,x)if(d[x+i]==m)wt(i,x-i);}
0