結果

問題 No.2247 01 ZigZag
ユーザー 👑 CleyL
提出日時 2023-07-28 21:07:33
言語 cLay
(20241019-1)
結果
WA  
実行時間 -
コード長 247 bytes
コンパイル時間 2,350 ms
コンパイル使用メモリ 173,692 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-10-06 16:54:08
合計ジャッジ時間 3,839 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 46 WA * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

{ll @a,@b,@c;ll m=min(a,b)*2,x=a-c/2,y=b-c/2;if((!x&&!y)||x<0||y<0||(!c&&m))wt(-1);else if(!m){rep(i,a+b)wtN(i>=a);}else if(m==c){rep(i,c)wtN((i+(b>a))%2);rep(max(x,y))wtN(b>a);}else{rep(x)wtN(0);rep(i,1,c)wtN(i%2);rep(y)wtN(1);if(!(c%2))wt(0);}}
0