結果

問題 No.1764 Square
ユーザー harurunharurun
提出日時 2021-10-12 18:54:15
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 468 bytes
コンパイル時間 6,468 ms
コンパイル使用メモリ 219,144 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-09-12 04:42:37
合計ジャッジ時間 6,591 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,376 KB
testcase_01 AC 2 ms
4,376 KB
testcase_02 AC 1 ms
4,380 KB
testcase_03 AC 2 ms
4,380 KB
testcase_04 AC 1 ms
4,376 KB
testcase_05 AC 2 ms
4,376 KB
testcase_06 AC 1 ms
4,380 KB
testcase_07 AC 2 ms
4,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include "testlib.h"
#include <iostream>
#include <deque>
#include <vector>
using namespace std;

int main(){
  registerValidation();
  int K;
  K=inf.readInt(1,100);
  inf.readEoln();
  inf.readEof();
  vector<deque<char>>dq={{'A','E'},{'B'},{'C'},{'D'}};
  for(int i=0;i<K;i++){
    dq.at((i+1)%4).push_back(dq.at(i%4).front());
    dq.at(i%4).pop_front();
  }
  for(int i=0;i<4;i++){
    for(char j:dq.at(i)){
      cout<<j;
    }
    cout<<endl;
  }
  return 0;
}
0