結果
| 問題 |
No.1801 Segment Game
|
| コンテスト | |
| ユーザー |
pockyny
|
| 提出日時 | 2022-01-07 23:02:46 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 283 ms / 2,000 ms |
| コード長 | 382 bytes |
| コンパイル時間 | 620 ms |
| コンパイル使用メモリ | 67,436 KB |
| 最終ジャッジ日時 | 2025-01-27 09:45:19 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 10 |
ソースコード
#include <iostream>
using namespace std;
typedef long long ll;
int main(){
int t; cin >> t;
while(t){
t--;
ll h,w,d; cin >> h >> w >> d;
ll l1,l2;
if(h%2==0) l1 = w*w;
else l1 = 1 + w*w;
if(w%2==0) l2 = h*h;
else l2 = 1 + h*h;
if(min(l1,l2)<=d*d) cout << "N" << endl;
else cout << "S" << endl;
}
}
pockyny