結果
問題 | No.2518 Adjacent Larger |
ユーザー | komkompi |
提出日時 | 2023-10-27 22:21:37 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 296 bytes |
コンパイル時間 | 152 ms |
コンパイル使用メモリ | 81,852 KB |
実行使用メモリ | 100,512 KB |
最終ジャッジ日時 | 2023-10-27 22:21:41 |
合計ジャッジ時間 | 3,104 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 32 ms
53,332 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 | WA | - |
testcase_12 | WA | - |
testcase_13 | WA | - |
testcase_14 | WA | - |
testcase_15 | WA | - |
testcase_16 | AC | 68 ms
100,208 KB |
testcase_17 | AC | 54 ms
82,632 KB |
testcase_18 | AC | 53 ms
82,660 KB |
testcase_19 | AC | 50 ms
78,640 KB |
testcase_20 | AC | 57 ms
89,152 KB |
testcase_21 | AC | 67 ms
100,256 KB |
testcase_22 | AC | 67 ms
100,256 KB |
testcase_23 | AC | 67 ms
100,256 KB |
testcase_24 | AC | 67 ms
100,136 KB |
testcase_25 | AC | 67 ms
100,256 KB |
testcase_26 | AC | 66 ms
100,256 KB |
testcase_27 | AC | 67 ms
100,256 KB |
testcase_28 | WA | - |
ソースコード
# coding: utf-8 # Your code here! T=int(input()) for _ in range(T): N=int(input()) A=list(map(int,input().split())) dic={0:0,1:0,2:0} for a in A: dic[a]+=1 if dic[2]==dic[0] and dic[0]>0 and dic[1]>0: print("Yes") else: print("No")