結果

問題 No.2518 Adjacent Larger
ユーザー 👑 p-adicp-adic
提出日時 2023-10-27 22:02:35
言語 cLay
(20240104-1)
結果
WA  
実行時間 -
コード長 170 bytes
コンパイル時間 2,749 ms
コンパイル使用メモリ 174,696 KB
実行使用メモリ 5,328 KB
最終ジャッジ日時 2023-10-27 22:02:40
合計ジャッジ時間 3,835 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,348 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 AC 3 ms
4,348 KB
testcase_12 AC 3 ms
4,348 KB
testcase_13 AC 2 ms
4,348 KB
testcase_14 AC 3 ms
4,348 KB
testcase_15 AC 3 ms
4,348 KB
testcase_16 AC 12 ms
5,296 KB
testcase_17 AC 7 ms
4,480 KB
testcase_18 AC 8 ms
4,504 KB
testcase_19 AC 6 ms
4,348 KB
testcase_20 AC 9 ms
4,768 KB
testcase_21 AC 4 ms
5,328 KB
testcase_22 AC 4 ms
5,328 KB
testcase_23 AC 13 ms
5,328 KB
testcase_24 AC 11 ms
5,244 KB
testcase_25 AC 11 ms
5,328 KB
testcase_26 AC 11 ms
5,328 KB
testcase_27 AC 4 ms
5,328 KB
testcase_28 AC 8 ms
5,328 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

ll@T;rep(T){ll@N,@A[N],b=0,t;REP(i,2N){if(b){if(A[i%N]==1){t=A[(i-1+N)%N];}else{if(b=A[i%N]!=t){t=A[i%N];}else{break;}}}else if(A[i%N]!=1)b=1,t=A[i%N];}wt(b?"Yes":"No");}
0