結果
| 問題 | No.3666 League of Jigsaw |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-08-30 17:12:20 |
| 言語 | C++17 (gcc 15.3.0 + boost 1.92.0) |
| 結果 |
AC
|
| 実行時間 | 37 ms / 2,000 ms |
| + 100µs | |
| コード長 | 495 bytes |
| 記録 | |
| コンパイル時間 | 1,196 ms |
| コンパイル使用メモリ | 209,804 KB |
| 実行使用メモリ | 6,272 KB |
| 最終ジャッジ日時 | 2026-08-30 17:12:24 |
| 合計ジャッジ時間 | 3,020 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 6 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main(){
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
int T; cin >> T;
while(T--){
int L,J,O; cin >> L >> J >> O;
if(L+J < O+O || (L+J-2*O)%6 || L%2 != J%2){cout << "No\n"; continue;}
if(L < J) swap(L,J);
int high = 2*O+(L+J-2*O)/6*5,low = (L+J-2*O)/6;
if(O == 0 && L%2) cout << "No\n";
else if(low <= L && L <= high) cout << "Yes\n";
else cout << "No\n";
}
}