結果
| 問題 |
No.1801 Segment Game
|
| コンテスト | |
| ユーザー |
🍮かんプリン
|
| 提出日時 | 2022-01-07 22:07:04 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 693 bytes |
| コンパイル時間 | 1,534 ms |
| コンパイル使用メモリ | 166,164 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-14 11:49:05 |
| 合計ジャッジ時間 | 4,795 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 1 |
| other | AC * 9 WA * 1 |
ソースコード
/**
* @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;
}
🍮かんプリン