結果
| 問題 |
No.231 めぐるはめぐる (1)
|
| コンテスト | |
| ユーザー |
kou_kkk
|
| 提出日時 | 2024-12-04 12:33:14 |
| 言語 | Nim (2.2.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 361 bytes |
| コンパイル時間 | 4,917 ms |
| コンパイル使用メモリ | 65,792 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-12-04 12:33:21 |
| 合計ジャッジ時間 | 5,141 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 11 |
ソースコード
import sequtils, strutils
proc calc(g, d: int): int =
g - 30000 * d
const
time = 6
p1 = 30_000
target = p1 * 100
let
n = parseInt stdin.readLine
gds = n.newSeqWith stdin.readLine.split.map parseInt
xs = gds.mapIt calc(it[0], it[1])
echo:
if (xs.max * time) >= target:
"YES\n".`&` xs.maxIndex.succ.repeat(time).join "\n"
else:
"NO"
kou_kkk