結果

問題 No.1801 Segment Game
コンテスト
ユーザー Shirotsume
提出日時 2022-01-07 22:13:01
言語 PyPy3
(7.3.17)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
WA  
実行時間 -
コード長 300 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 196 ms
コンパイル使用メモリ 85,248 KB
実行使用メモリ 82,048 KB
最終ジャッジ日時 2026-05-09 23:48:04
合計ジャッジ時間 2,038 ms
ジャッジサーバーID
(参考情報)
judge1_1 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 1 WA * 9
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

import sys
input = lambda: sys.stdin.readline().rstrip()
INF = 10 ** 19
from collections import deque

def solve():
    h, w, d = map(int,input().split())
    x = min(h * h + w * w, d * d)
    if x % 2:
        print('S')
    else:
        print('N')


t = int(input())
for _ in range(t):
    solve()
0