結果
問題 | No.1801 Segment Game |
ユーザー | kona0001 |
提出日時 | 2023-03-14 04:22:11 |
言語 | Ruby (3.3.0) |
結果 |
AC
|
実行時間 | 364 ms / 2,000 ms |
コード長 | 299 bytes |
コンパイル時間 | 108 ms |
コンパイル使用メモリ | 11,904 KB |
実行使用メモリ | 24,536 KB |
最終ジャッジ日時 | 2023-10-18 11:28:34 |
合計ジャッジ時間 | 4,748 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 86 ms
16,076 KB |
testcase_01 | AC | 359 ms
24,536 KB |
testcase_02 | AC | 363 ms
24,536 KB |
testcase_03 | AC | 360 ms
24,536 KB |
testcase_04 | AC | 364 ms
24,536 KB |
testcase_05 | AC | 361 ms
24,536 KB |
testcase_06 | AC | 363 ms
24,536 KB |
testcase_07 | AC | 363 ms
24,536 KB |
testcase_08 | AC | 361 ms
24,536 KB |
testcase_09 | AC | 363 ms
24,536 KB |
testcase_10 | AC | 86 ms
16,076 KB |
コンパイルメッセージ
Syntax OK
ソースコード
t = gets.to_i ans = [] t.times do h,w,d = gets.split.map(&:to_i) f = false if h%2==0 f = true if w <= d else f = true if w*w + 1 <= d*d end if w%2==0 f = true if h <= d else f = true if h*h + 1 <= d*d end if f ans << "N" else ans << "S" end end puts ans