結果
| 問題 | No.3661 Grid Paint Game |
| コンテスト | |
| ユーザー |
Kude
|
| 提出日時 | 2026-08-30 14:30:43 |
| 言語 | PyPy3 (7.3.23) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 253 bytes |
| 記録 | |
| コンパイル時間 | 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 |
ソースコード
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')
Kude