結果
問題 |
No.1764 Square
|
ユーザー |
|
提出日時 | 2021-12-30 23:17:20 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 935 bytes |
コンパイル時間 | 1,450 ms |
コンパイル使用メモリ | 159,844 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-07 01:37:43 |
合計ジャッジ時間 | 2,699 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 2 RE * 3 |
ソースコード
#include <bits/stdc++.h> typedef long long ll; using namespace std; int main() { string s = "EABCDEABCD"; int n; cin >> n; string t = s.substr((5 - n / 4) % 5, 5); if (n % 4 == 0) { cout << t[1]; cout << t[0] << endl; cout << t[2] << endl; cout << t[3] << endl; cout << t[4] << endl; return 0; } if (n % 4 == 1) { cout << t[0] << endl; cout << t[2]; cout << t[1] << endl; cout << t[3] << endl; cout << t[4] << endl; return 0; } if (n % 4 == 2) { cout << t[0] << endl; cout << t[1] << endl; cout << t[3]; cout << t[2] << endl; cout << t[4] << endl; return 0; } if (n % 4 == 3) { cout << t[0] << endl; cout << t[1] << endl; cout << t[2] << endl; cout << t[4]; cout << t[3] << endl; return 0; } }