結果
| 問題 |
No.396 クラス替え
|
| コンテスト | |
| ユーザー |
vjudge1
|
| 提出日時 | 2025-05-16 15:26:29 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 498 bytes |
| コンパイル時間 | 1,457 ms |
| コンパイル使用メモリ | 159,612 KB |
| 実行使用メモリ | 16,068 KB |
| 最終ジャッジ日時 | 2025-05-16 15:26:35 |
| 合計ジャッジ時間 | 4,848 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 3 OLE * 1 -- * 16 |
ソースコード
#include<bits/stdc++.h>
#define int long long
#define fr first
#define sc second
using namespace std;
int const N=1e6+5;
typedef pair<int,int> pii;
int n,m,sum,cnt,t,ans,h,w,k;
signed main()
{
// freopen(".in","r",stdin);
// freopen(".out","w",stdout);
ios::sync_with_stdio(0);
cin.tie(0),cout.tie(0);
cin>>t;
while(t--)
{
cin>>h>>w>>n>>k;
if(h==1||w==1)
{
if(k==1) cout<<"NO\n";
else cout<<"YES\n";
continue;
}
cout<<"YES\n";
}
return 0;
}
vjudge1