結果
| 問題 | No.3791 Full House Torus |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-11-06 21:49:08 |
| 言語 | C++23(gcc16) (gcc 16.2.0 + boost 1.92.0 + ACL) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 1,077 bytes |
| 記録 | |
| コンパイル時間 | 3,824 ms |
| コンパイル使用メモリ | 353,920 KB |
| 実行使用メモリ | 9,904 KB |
| 最終ジャッジ日時 | 2026-11-06 21:49:16 |
| 合計ジャッジ時間 | 6,035 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 1 |
| other | WA * 11 |
ソースコード
#line 1 "lib/core.hpp"
// Library and Editor Setting is here: https://github.com/Nihonielse/competitive-library
#ifndef CORE_FILE
#define CORE_FILE
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ull = unsigned long long;
#define rep(i, n) for (int i = 0; i < n; i++)
#define rrep(i, n, s) for (int i = s; i < n; i++)
#define vall(v) v.begin(), v.end()
constexpr int INF = 1 << 30;
constexpr int NEG_INF = -INF;
constexpr ll LINF = 1ll << 62;
constexpr ll NEG_LINF = -LINF;
template <typename T> inline bool chmax(T &a, const T &b) {
if (a < b) {
a = b;
return true;
}
return false;
}
template <typename T> inline bool chmin(T &a, const T &b) {
if (a > b) {
a = b;
return true;
}
return false;
}
template <typename T>
using min_priority_queue = priority_queue<T,vector<T>,greater<T>>;
#endif
#line 2 "codes/F.cpp"
int main(){
int t;
cin>>t;
while(t--){
int h,w;
cin>>h>>w;
if(h<=2||w<=2){
cout<<"No"<<endl;
}
cout<<"Yes"<<endl;
rep(i,h){
rep(j,w-1)cout<<1-i%2;
cout<<i%2<<endl;
}
}
}