結果
| 問題 |
No.1801 Segment Game
|
| コンテスト | |
| ユーザー |
hir355
|
| 提出日時 | 2022-01-07 22:00:13 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 371 ms / 2,000 ms |
| コード長 | 293 bytes |
| コンパイル時間 | 533 ms |
| コンパイル使用メモリ | 82,224 KB |
| 実行使用メモリ | 77,848 KB |
| 最終ジャッジ日時 | 2024-11-14 11:48:40 |
| 合計ジャッジ時間 | 4,741 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 10 |
ソースコード
t = int(input())
for _ in range(t):
h, w, d = map(int, input().split())
if h % 2 == 1:
x = w ** 2 + 1
else:
x = w ** 2
if w % 2 == 1:
y = h ** 2 + 1
else:
y = h ** 2
if min(x, y) <= d ** 2:
print('N')
else:
print('S')
hir355