結果
| 問題 | No.5 数字のブロック |
| コンテスト | |
| ユーザー |
kou_kkk
|
| 提出日時 | 2022-10-17 22:23:23 |
| 言語 | Nim (2.2.8) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 192 bytes |
| 記録 | |
| コンパイル時間 | 3,646 ms |
| コンパイル使用メモリ | 68,656 KB |
| 実行使用メモリ | 6,272 KB |
| 最終ジャッジ日時 | 2026-03-17 03:05:33 |
| 合計ジャッジ時間 | 4,346 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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