結果
| 問題 |
No.290 1010
|
| コンテスト | |
| ユーザー |
ntuda
|
| 提出日時 | 2024-01-01 16:00:48 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 45 ms / 5,000 ms |
| コード長 | 181 bytes |
| コンパイル時間 | 294 ms |
| コンパイル使用メモリ | 82,344 KB |
| 実行使用メモリ | 59,932 KB |
| 最終ジャッジ日時 | 2024-09-27 17:24:17 |
| 合計ジャッジ時間 | 2,152 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 24 |
ソースコード
N = int(input())
S = input()
if N == 1:
print("NO")
elif N == 2 and S in ["01","10"]:
print("NO")
elif N == 3 and S in ["101","010"]:
print("NO")
else:
print("YES")
ntuda