結果
問題 |
No.1801 Segment Game
|
ユーザー |
|
提出日時 | 2025-05-07 16:50:56 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 272 ms / 2,000 ms |
コード長 | 353 bytes |
コンパイル時間 | 953 ms |
コンパイル使用メモリ | 92,412 KB |
実行使用メモリ | 7,844 KB |
最終ジャッジ日時 | 2025-05-07 16:51:02 |
合計ジャッジ時間 | 5,592 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 10 |
ソースコード
// competitive-verifier: PROBLEM https://yukicoder.me/problems/no/1801 #include <algorithm> #include <iostream> void solve() { int h, w, d; std::cin >> h >> w >> d; auto [x, y] = std::minmax(h, w); std::cout << (x + (y % 2) <= d ? "N\n" : "S\n"); } int main(void) { int t; std::cin >> t; while (t--) solve(); return 0; }