結果

問題 No.2424 Josouzai
ユーザー tailstails
提出日時 2023-08-18 21:05:36
言語 cLay
(20240104-1)
結果
AC  
実行時間 13 ms / 2,000 ms
コード長 85 bytes
コンパイル時間 5,494 ms
コンパイル使用メモリ 204,860 KB
実行使用メモリ 9,108 KB
最終ジャッジ日時 2023-08-18 21:05:56
合計ジャッジ時間 6,720 ms
ジャッジサーバーID
(参考情報)
judge14 / judge10
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,376 KB
testcase_01 AC 2 ms
4,376 KB
testcase_02 AC 1 ms
4,380 KB
testcase_03 AC 2 ms
4,376 KB
testcase_04 AC 5 ms
5,032 KB
testcase_05 AC 12 ms
9,108 KB
testcase_06 AC 12 ms
9,056 KB
testcase_07 AC 13 ms
9,000 KB
testcase_08 AC 13 ms
8,988 KB
testcase_09 AC 2 ms
4,376 KB
testcase_10 AC 4 ms
4,384 KB
testcase_11 AC 7 ms
5,808 KB
testcase_12 AC 6 ms
5,572 KB
testcase_13 AC 4 ms
4,904 KB
testcase_14 AC 8 ms
6,168 KB
testcase_15 AC 2 ms
4,376 KB
testcase_16 AC 11 ms
8,964 KB
testcase_17 AC 4 ms
4,656 KB
testcase_18 AC 4 ms
4,876 KB
testcase_19 AC 7 ms
5,848 KB
testcase_20 AC 11 ms
8,800 KB
testcase_21 AC 9 ms
8,532 KB
testcase_22 AC 5 ms
4,860 KB
testcase_23 AC 5 ms
5,372 KB
testcase_24 AC 4 ms
4,376 KB
testcase_25 AC 11 ms
8,876 KB
testcase_26 AC 8 ms
8,760 KB
testcase_27 AC 12 ms
9,000 KB
testcase_28 AC 11 ms
8,728 KB
testcase_29 AC 10 ms
8,792 KB
testcase_30 AC 4 ms
4,380 KB
testcase_31 AC 6 ms
5,584 KB
testcase_32 AC 12 ms
9,028 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

ll@n,@k,@a[n],i=0;
sortA(n,a);
while(i<n&&k>=0)k-=a[i++];
if(k<0)k+=a[--i];
wt(i,k);
0