結果
| 問題 |
No.290 1010
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-03-18 10:02:23 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 38 ms / 5,000 ms |
| コード長 | 290 bytes |
| コンパイル時間 | 206 ms |
| コンパイル使用メモリ | 82,264 KB |
| 実行使用メモリ | 52,096 KB |
| 最終ジャッジ日時 | 2024-11-16 09:03:17 |
| 合計ジャッジ時間 | 2,090 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 24 |
ソースコード
N = int(input())
if N >= 4:
print("YES")
elif N == 3:
S = input()
if S == "101" or S == "010":
print("NO")
else:
print("YES")
elif N == 2:
S = input()
if S == "01" or S == "10":
print("NO")
else:
print("YES")
else:
print("NO")