結果

問題 No.290 1010
ユーザー Konton7
提出日時 2019-05-03 20:41:02
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 33 ms / 5,000 ms
コード長 106 bytes
コンパイル時間 477 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 12,792 KB
最終ジャッジ日時 2024-12-31 16:10:28
合計ジャッジ時間 2,188 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 24
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
s = input()

ans = "YES"
if s in ["0","1","01","10","010","101"]:
	ans = "NO"
print(ans)
0