結果

問題 No.1801 Segment Game
ユーザー 🍮かんプリン🍮かんプリン
提出日時 2022-01-07 22:07:04
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 693 bytes
コンパイル時間 1,407 ms
コンパイル使用メモリ 161,692 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-04-26 20:51:02
合計ジャッジ時間 4,614 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 AC 241 ms
5,248 KB
testcase_02 AC 258 ms
5,376 KB
testcase_03 AC 241 ms
5,376 KB
testcase_04 AC 243 ms
5,376 KB
testcase_05 AC 247 ms
5,376 KB
testcase_06 AC 247 ms
5,376 KB
testcase_07 AC 243 ms
5,376 KB
testcase_08 AC 255 ms
5,376 KB
testcase_09 AC 242 ms
5,376 KB
testcase_10 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

/**
 *   @FileName	a.cpp
 *   @Author	kanpurin
 *   @Created	2022.01.07 22:07:00
**/

#include "bits/stdc++.h" 
using namespace std; 
typedef long long ll;


int main() {
    int t;cin >> t;
    for (int _ = 0; _ < t; _++) {
        ll h,w,d;cin >> h >> w >> d;
        ll h2 = h/2,w2 = w/2;
        if (h%2 == 0 && w<=d) {
            puts("N");
            continue;
        }
        if (w%2 == 0 && h<=d) {
            puts("N");
            continue;
        }
        if (h%2 == 1 && w*w+4<=d*d) {
            puts("N");
            continue;
        }
        if (w%2 == 1 && h*h+4<=d*d) {
            puts("N");
            continue;
        }
        puts("S");
    }
    return 0;
}
0