結果
問題 |
No.804 野菜が苦手
|
ユーザー |
|
提出日時 | 2019-05-05 13:50:28 |
言語 | Nim (2.2.0) |
結果 |
WA
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 378 bytes |
コンパイル時間 | 2,277 ms |
コンパイル使用メモリ | 60,848 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-01 23:24:06 |
合計ジャッジ時間 | 3,066 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 2 |
other | WA * 18 |
ソースコード
proc getchar_unlocked():char {. importc:"getchar_unlocked",header: "<stdio.h>" ,discardable.} proc scan(): int = while true: let k = getchar_unlocked() if k < '0': return result = 10 * result + k.ord - '0'.ord let a = scan() let b = scan() let c = scan() let d = scan() for i in a.countdown(0): if c * i > b : continue if i + c * i > d : continue quit $i,0