結果

問題 No.1850 Rewrite Product
ユーザー MitarushiMitarushi
提出日時 2022-02-24 22:53:31
言語 Nim
(2.0.2)
結果
AC  
実行時間 402 ms / 2,000 ms
コード長 494 bytes
コンパイル時間 5,831 ms
コンパイル使用メモリ 68,632 KB
実行使用メモリ 4,384 KB
最終ジャッジ日時 2023-09-15 10:15:16
合計ジャッジ時間 7,389 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,384 KB
testcase_01 AC 402 ms
4,380 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import strutils, sequtils


proc solve() =
    var x, y: int
    (x, y) = stdin.readLine.split.map parseInt

    assert 1 <= x and x <= 1000000000
    assert 1 <= y and y <= 1000000000

    if x <= 4 and y <= x or x >= 5:
        echo "Yes"
    else:
        echo "No"

proc last_check() =
    try:
        let x = stdin.readLine
        assert x == ""
    except EOFError:
        return

let t = stdin.readLine.parseInt
assert 1 <= t and t <= 200000
for _ in 0..<t:
    solve()

last_check()
0