結果
| 問題 |
No.1801 Segment Game
|
| コンテスト | |
| ユーザー |
沙耶花
|
| 提出日時 | 2022-01-07 21:26:50 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 280 ms / 2,000 ms |
| コード長 | 431 bytes |
| コンパイル時間 | 4,217 ms |
| コンパイル使用メモリ | 250,224 KB |
| 最終ジャッジ日時 | 2025-01-27 09:10:14 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 10 |
ソースコード
#include <stdio.h>
#include <bits/stdc++.h>
#include <atcoder/all>
using namespace atcoder;
using mint = modint1000000007;
using namespace std;
#define rep(i,n) for(int i=0;i<(n);i++)
#define Inf 1000000001
int main(){
int _t;
cin>>_t;
rep(_,_t){
long long h,w,d;
cin>>h>>w>>d;
long long x = h*h + (w%2) * (w%2);
x = min(x,w*w + (h%2) * (h%2));
if(x<=d*d)cout<<"N"<<endl;
else cout<<"S"<<endl;
}
return 0;
}
沙耶花