結果
問題 | No.5 数字のブロック |
ユーザー |
![]() |
提出日時 | 2022-10-17 22:27:43 |
言語 | Nim (2.2.0) |
結果 |
AC
|
実行時間 | 5 ms / 5,000 ms |
コード長 | 193 bytes |
コンパイル時間 | 3,878 ms |
コンパイル使用メモリ | 65,448 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-28 11:27:42 |
合計ジャッジ時間 | 4,897 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 34 |
ソースコード
import algorithm,sequtils,strutilsvar l,n = parseInt readLine stdinvar w = stdin.readLine.split.map parseIntw.sort cmpvar cnt = 0for x in w:if l-x >= 0:l -= xinc cntecho cnt