結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,348 KB
testcase_01 AC 4 ms
4,348 KB
testcase_02 AC 4 ms
4,348 KB
testcase_03 AC 4 ms
4,348 KB
testcase_04 AC 4 ms
4,348 KB
testcase_05 AC 4 ms
4,348 KB
testcase_06 AC 3 ms
4,348 KB
testcase_07 AC 2 ms
4,348 KB
testcase_08 AC 3 ms
4,348 KB
testcase_09 AC 3 ms
4,348 KB
testcase_10 AC 3 ms
4,348 KB
testcase_11 AC 3 ms
4,348 KB
testcase_12 AC 2 ms
4,348 KB
testcase_13 AC 3 ms
4,348 KB
testcase_14 AC 2 ms
4,348 KB
testcase_15 AC 3 ms
4,348 KB
testcase_16 AC 11 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 3 ms
5,328 KB
testcase_23 AC 12 ms
5,328 KB
testcase_24 AC 7 ms
5,244 KB
testcase_25 AC 7 ms
5,328 KB
testcase_26 AC 8 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){if(!(b=A[i%N]!=t))break;t=A[i%N];}}else if(A[i%N]!=1)b=1,t=A[i%N];}wt(b?"Yes":"No");}
0