結果
問題 | No.2343 (l+r)/2 |
ユーザー | 👑 SPD_9X2 |
提出日時 | 2023-06-15 14:53:01 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 587 bytes |
コンパイル時間 | 1,022 ms |
コンパイル使用メモリ | 86,916 KB |
実行使用メモリ | 96,004 KB |
最終ジャッジ日時 | 2023-09-05 19:29:26 |
合計ジャッジ時間 | 3,464 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 71 ms
71,560 KB |
testcase_01 | AC | 192 ms
78,368 KB |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | AC | 91 ms
87,108 KB |
testcase_05 | AC | 78 ms
78,744 KB |
testcase_06 | AC | 81 ms
77,988 KB |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | AC | 90 ms
87,428 KB |
testcase_13 | AC | 86 ms
82,348 KB |
testcase_14 | WA | - |
ソースコード
import sys from sys import stdin TT = int(stdin.readline()) for loop in range(TT): N = int(stdin.readline()) A = list(map(int,stdin.readline().split())) if A[0] != A[-1]: print ("Yes") else: flag = True f = A[-1] while A and A[-1] == f: del A[-1] A.reverse() while A and A[-1] == f: del A[-1] flag = False for i in range(len(A)-1): if A[i] == A[i+1]: flag = True if flag: print ("Yes") else: print ("No")