結果

問題 No.804 野菜が苦手
コンテスト
ユーザー むらため
提出日時 2019-05-05 13:50:28
言語 Nim
(2.2.6)
コンパイル:
nim --nimcache=~ --hints:off -o:a.out -d:release cpp _filename_
実行:
./a.out
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 378 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 2,684 ms
コンパイル使用メモリ 66,776 KB
実行使用メモリ 6,272 KB
最終ジャッジ日時 2026-03-23 02:50:19
合計ジャッジ時間 2,667 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 2
other WA * 19
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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
0