結果
| 問題 |
No.290 1010
|
| コンテスト | |
| ユーザー |
tnoda_
|
| 提出日時 | 2015-10-24 18:22:21 |
| 言語 | Python2 (2.7.18) |
| 結果 |
AC
|
| 実行時間 | 14 ms / 5,000 ms |
| コード長 | 288 bytes |
| コンパイル時間 | 51 ms |
| コンパイル使用メモリ | 6,912 KB |
| 実行使用メモリ | 7,552 KB |
| 最終ジャッジ日時 | 2024-09-13 04:53:22 |
| 合計ジャッジ時間 | 1,169 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 24 |
ソースコード
N = input()
S = raw_input()
if N == 1:
print('NO')
quit()
if N == 2:
if S in set(['00', '11']):
print('YES')
else:
print('NO')
quit()
if N == 3:
if S in set(['010', '101']):
print('NO')
else:
print('YES')
quit()
print('YES')
tnoda_