結果
| 問題 |
No.3191 Operation Puzzle
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-06-27 21:21:44 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 1,413 bytes |
| コンパイル時間 | 6,592 ms |
| コンパイル使用メモリ | 335,112 KB |
| 実行使用メモリ | 7,848 KB |
| 最終ジャッジ日時 | 2025-06-27 21:21:54 |
| 合計ジャッジ時間 | 7,891 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 45 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#include <atcoder/all>
using namespace atcoder;
using mint = modint998244353;
using vm = vector<mint>;
using vvm = vector<vm>;
inline ostream &operator<<(ostream &os, const mint x)
{
return os << x.val();
};
inline istream &operator>>(istream &is, mint &x)
{
long long v;
is >> v;
x = v;
return is;
};
struct Fast
{
Fast()
{
std::cin.tie(nullptr);
ios::sync_with_stdio(false);
cout << setprecision(10);
}
} fast;
template <class T>
inline void chmin(T &a, T b)
{
if (a > b) a = b;
}
template <class T>
inline void chmax(T &a, T b)
{
if (a < b) a = b;
}
#define all(a) (a).begin(), (a).end()
#define contains(a, x) ((a).find(x) != (a).end())
#define rep(i, a, b) for (int i = (a); i < (int)(b); i++)
#define rrep(i, a, b) for (int i = (int)(b) - 1; i >= (a); i--)
#define YN(b) cout << ((b) ? "YES" : "NO") << "\n";
#define Yn(b) cout << ((b) ? "Yes" : "No") << "\n";
#define yn(b) cout << ((b) ? "yes" : "no") << "\n";
using ll = long long;
using vl = vector<ll>;
using vvl = vector<vl>;
using vi = vector<int>;
using vvi = vector<vi>;
void solve()
{
int n;
cin >> n;
vi a(n);
rep(i, 0, n) cin >> a[i];
int x;
cin >> x;
Yn(1);
rep(i, 0, 4) rep(j, 0, 4) cout << x << " \n"[j == 3];
}
int main()
{
int t = 1;
// cin >> t;
while (t--)
solve();
}