結果

問題 No.3661 Grid Paint Game
コンテスト
ユーザー Kude
提出日時 2026-08-30 14:30:43
言語 PyPy3
(7.3.23)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
WA  
実行時間 -
コード長 253 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 240 ms
コンパイル使用メモリ 95,724 KB
実行使用メモリ 85,248 KB
最終ジャッジ日時 2026-08-30 14:30:46
合計ジャッジ時間 2,961 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 1 WA * 7
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

for _ in range(int(input())):
    h, w = map(int, input().split())
    res = 0
    if h <= w:
        res += w * h
        res -= h * h
        res -= h
    else:
        res += w * (w + 1)
        res -= h * w
    print('sepa' if res >= 0 else 'ryota')
0