結果
問題 | No.1764 Square |
ユーザー | aogera |
提出日時 | 2024-03-15 10:23:59 |
言語 | C++14 (gcc 12.3.0 + boost 1.83.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 1,589 bytes |
コンパイル時間 | 9,910 ms |
コンパイル使用メモリ | 412,944 KB |
実行使用メモリ | 6,676 KB |
最終ジャッジ日時 | 2024-03-15 10:24:10 |
合計ジャッジ時間 | 10,948 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 1 ms
6,676 KB |
testcase_01 | AC | 2 ms
6,676 KB |
testcase_02 | AC | 2 ms
6,676 KB |
testcase_03 | AC | 2 ms
6,676 KB |
testcase_04 | AC | 2 ms
6,676 KB |
testcase_05 | AC | 2 ms
6,676 KB |
testcase_06 | AC | 2 ms
6,676 KB |
testcase_07 | AC | 2 ms
6,676 KB |
コンパイルメッセージ
main.cpp: In function 'void in(T& ...)': main.cpp:18:53: warning: fold-expressions only available with '-std=c++17' or '-std=gnu++17' [-Wc++17-extensions] 18 | template<class... T>void in(T&... a){(cin >> ... >> a);} | ^ main.cpp: In function 'void out(const T&, const Ts& ...)': main.cpp:19:100: warning: fold-expressions only available with '-std=c++17' or '-std=gnu++17' [-Wc++17-extensions] 19 | template<class T, class... Ts>void out(const T& a, const Ts&... b){cout << a;((cout << ' ' << b), ...);cout << '\n';} | ^~~
ソースコード
#include<bits/stdc++.h> #include <atcoder/all> #include<boost/multiprecision/cpp_int.hpp> using namespace boost::multiprecision; using namespace std;using namespace atcoder;using vst = vector<string>;using ll = long long; using ld = long double;using pll = pair<ll,ll>;using vll = vector<ll>;using vvll = vector<vll>; using cint = cpp_int; #define rep(i, n) for (ll i = 0; i < n; i++) #define repp(i,k,n) for (ll i = k; i < n; i++) #define per(i,s,e) for(ll i = s; i >= e; i--) #define all(v) v.begin(),v.end() #define no() {cout << "No" << endl; return 0;} #define yes() {cout << "Yes" << endl;return 0;} #define CHECK(a) a ? cout << "Yes" << endl : cout << "No" << endl #define UNOmap unordered_map #define UNOset unordered_set #define ASC(T) T,vector<T>,greater<T> template<class... T>void in(T&... a){(cin >> ... >> a);} template<class T, class... Ts>void out(const T& a, const Ts&... b){cout << a;((cout << ' ' << b), ...);cout << '\n';} void vin(vll &v){for(ll i = 0; i < (ll)v.size(); i++)in(v[i]);} void vout(vll &v){for(ll i = 0; i < (ll)v.size(); i++) cout << v[i] << ' ';} ll INF = 1LL << 62;ll MODD = 998244353;ll MOD = 1000000007; using mint = modint998244353; //using mint = modint1000000007; //using mint = modint; //---------------------------------------------- int main(){ vector<deque<char>> q(4); q[0] = {'A','E'}; q[1] = {'B'}; q[2] = {'C'}; q[3] = {'D'}; ll K; in(K); rep(i,K){ char n = q[i%4].front(); q[i%4].pop_front(); q[(i+1)%4].push_back(n); } rep(i,4){ for(auto p : q[i]){ cout << p ; } cout << endl; } }