結果
| 問題 |
No.1801 Segment Game
|
| コンテスト | |
| ユーザー |
MasKoaTS
|
| 提出日時 | 2022-01-09 16:57:22 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 214 ms / 2,000 ms |
| コード長 | 778 bytes |
| コンパイル時間 | 362 ms |
| コンパイル使用メモリ | 82,264 KB |
| 実行使用メモリ | 90,844 KB |
| 最終ジャッジ日時 | 2024-11-14 12:10:45 |
| 合計ジャッジ時間 | 3,751 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 10 |
ソースコード
import itertools as iter
import collections as coll
import heapq as hq
import bisect as bis
from decimal import Decimal as dec
from copy import deepcopy as dcopy
import math
import sys
sys.setrecursionlimit(10**6)
def input():
return sys.stdin.readline().rstrip()
def getN():
return int(sys.stdin.readline())
def getNs():
return map(int,sys.stdin.readline().split())
def getList():
return list(map(int,sys.stdin.readline().split()))
def strinps(n):
return [sys.stdin.readline().rstrip() for _ in range(n)]
pi = 3.141592653589793
mod = 10**9+7
MOD = 998244353
INF = math.inf
dx = [1,0,-1,0]; dy = [0,1,0,-1]
"""
Main Code
"""
for _ in [0] * getN():
h,w,d = getNs()
a = w ** 2 + (h & 1)
b = h ** 2 + (w & 1)
if(d ** 2 >= min(a,b)):
print('N')
else:
print('S')
MasKoaTS