結果
問題 |
No.1587 012 Matrix
|
ユーザー |
|
提出日時 | 2021-07-09 14:13:47 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 448 bytes |
コンパイル時間 | 1,889 ms |
コンパイル使用メモリ | 178,480 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-07-01 13:59:25 |
合計ジャッジ時間 | 6,090 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 1 |
other | WA * 22 |
ソースコード
#pragma GCC optimize("Ofast", "unroll-loops") #include <bits/stdc++.h> using namespace std; int main(void){ int N; cin >> N; cout << "Yes" << endl; for (int i = 0; i < N; ++i){ for (int j = 0; j < N; ++j){ if (i < j) cout << 0; if (i == j && j < N / 2) cout << 2; if (i == j && j >= N / 2) cout << 1; if (i > j) cout << 2; } cout << endl; } return 0; }