結果

問題 No.3191 Operation Puzzle
ユーザー nyuminyusupe
提出日時 2025-06-27 21:29:53
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 732 bytes
コンパイル時間 1,454 ms
コンパイル使用メモリ 162,452 KB
実行使用メモリ 7,848 KB
最終ジャッジ日時 2025-06-27 21:29:57
合計ジャッジ時間 3,567 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 45
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
#define rep(i,n) for(int i=0; i< (n); i++)
#define all(a) (a).begin(),(a).end()
using namespace std;
typedef long long ll;
typedef pair<int,int> P;
const int mod = 998244353;
const int inf = (1<<30);
const ll INF = (1ull<<62);
const int vx[4] = {1,0,-1,0};
const int vy[4] = {0,1,0,-1};
template< typename T1, typename T2 >
inline bool chmax(T1 &a, T2 b) { return a < b && (a = b, true); }
template< typename T1, typename T2 >
inline bool chmin(T1 &a, T2 b) { return a > b && (a = b, true); }

int main(){
    int n; cin>>n;
    vector<int> a(n);
    rep(i,n) cin>>a[i];
    int x; cin>>x;
    cout<<"Yes"<<endl;
    rep(i,4){
        rep(j,4){
            cout<<x<<" ";
        }
        cout<<endl;
    }
}
0