結果

問題 No.1801 Segment Game
ユーザー asaringoasaringo
提出日時 2022-01-20 03:25:31
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 661 bytes
コンパイル時間 1,729 ms
コンパイル使用メモリ 163,484 KB
実行使用メモリ 4,504 KB
最終ジャッジ日時 2023-08-15 08:22:47
合計ジャッジ時間 6,446 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,376 KB
testcase_01 AC 250 ms
4,376 KB
testcase_02 AC 244 ms
4,380 KB
testcase_03 AC 247 ms
4,384 KB
testcase_04 AC 245 ms
4,376 KB
testcase_05 AC 250 ms
4,380 KB
testcase_06 AC 245 ms
4,376 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 AC 2 ms
4,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std ;
typedef long long ll ;
typedef long double ld ;
typedef pair<ll,ll> P ;
typedef tuple<bool,ll,ll,ll> TP ;
#define chmin(a,b) a = min(a,b)
#define chmax(a,b) a = max(a,b)
#define bit_count(x) __builtin_popcountll(x)
#define gcd(a,b) __gcd(a,b)
#define lcm(a,b) a / gcd(a,b) * b
#define rep(i,n) for(int i = 0 ; i < n ; i++)
#define rrep(i,a,b) for(int i = a ; i < b ; i++)
#define endl "\n"

int t ;

int main(){
    cin >> t ;
    rep(i,t){
        ll h , w , d ;
        cin >> h >> w >> d ;
        ll v = min(h,w) ;
        if(v * v + 1 <= d * d) cout << "N" << endl ;
        else cout << "S" << endl ;
    }
}
0