結果

問題 No.796 well known
ユーザー mfbgjsczmfbgjscz
提出日時 2019-10-25 20:54:34
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 1,194 bytes
コンパイル時間 1,254 ms
コンパイル使用メモリ 167,540 KB
実行使用メモリ 4,388 KB
最終ジャッジ日時 2023-09-29 15:59:06
合計ジャッジ時間 3,522 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,380 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 2 ms
4,376 KB
testcase_04 AC 89 ms
4,388 KB
testcase_05 AC 97 ms
4,376 KB
testcase_06 AC 112 ms
4,376 KB
testcase_07 AC 27 ms
4,380 KB
testcase_08 AC 98 ms
4,380 KB
testcase_09 AC 60 ms
4,380 KB
testcase_10 WA -
testcase_11 AC 16 ms
4,376 KB
testcase_12 AC 49 ms
4,380 KB
testcase_13 WA -
testcase_14 AC 37 ms
4,376 KB
testcase_15 AC 54 ms
4,380 KB
testcase_16 AC 112 ms
4,384 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
#define lli long long int
#define uli unsigned long long int
#define INF 99999999999
#define rep(i,m,n) for(lli i = m;i < n;i++)
#define rrep(i,m,n) for(lli i=m-1;i>=n;i--)
#define pb(n) push_back(n)
#define UE(N) N.erase(unique(N.begin(),N.end()),N.end());
#define Sort(n) sort(n.begin(), n.end())
#define Rev(n) reverse(n.begin(),n.end())
#define Out(S) cout << S << endl
#define NeOut(S) cout << S
#define HpOut(S) cout << setprecision(150) << S << endl
#define Vec(K,L,N,S) vector<L> K(N,S)
#define DV(K,L,N,M,S) vector<vector<L>> K(N,vector<L>(M,S))
#define TV(K,L,N,M,R,S) vector<vector<vector<L>>> K(N,vector<vector<L>>(M,vector<L>(R,S)))
#define pint pair<lli,lli>
#define paf(L,R) pair<L,R>
#define mod 1000000007
#define MAX 5100000
#define chmax(a, b) a = (((a)<(b)) ? (b) : (a))
#define chmin(a, b) a = (((a)>(b)) ? (b) : (a))
int main(){
  lli A,B,C,D,E,F,N,M,K,L,R,X,Y,H,W,sum=0,num=0,flag=0;string S,T;
  cin >> N;
  Vec(P,lli,0,0);
  P.pb(3);
  sum+=3;
  rep(i,0,N-1){
    if(i+2==N){
      if(!sum%3)P.pb(1);
      else if(sum%3==2)P.pb(2);
      else P.pb(3);
    }
    else P.pb(1);
    sum++;
    Out(P[i]);
  }
  Out(P[N-1]);
}
0