結果
| 問題 |
No.5 数字のブロック
|
| コンテスト | |
| ユーザー |
kou_kkk
|
| 提出日時 | 2022-10-17 22:23:23 |
| 言語 | Nim (2.2.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 192 bytes |
| コンパイル時間 | 3,646 ms |
| コンパイル使用メモリ | 65,664 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-06-28 11:24:38 |
| 合計ジャッジ時間 | 4,795 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 27 WA * 7 |
ソースコード
import algorithm,sequtils,strutils
var l,n = parseInt readLine stdin
var w = stdin.readLine.split.map parseInt
w.sort cmp
var cnt = 0
for x in w:
if l-x > 0:
l -= x
inc cnt
echo cnt
kou_kkk