結果
| 問題 |
No.1053 ゲーミング棒
|
| コンテスト | |
| ユーザー |
nephrologist
|
| 提出日時 | 2020-05-15 22:12:39 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 290 bytes |
| コンパイル時間 | 71 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 23,136 KB |
| 最終ジャッジ日時 | 2024-09-19 10:49:29 |
| 合計ジャッジ時間 | 2,509 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 1 RE * 2 |
| other | WA * 17 RE * 17 |
ソースコード
n=int(input())
A=list(map(int,input().split()))
pre=-1
kouho=set()
out=[]
for i in range(n):
if A[i]==pre:
continue
if A[i] in kouho:
out.appen(A[i])
kouho.add(A[i])
pre=A[i]
if not out:
if len(out)==1 and A[0]==A[-1]:
print(1)
else:
print(0)
nephrologist