結果
| 問題 |
No.290 1010
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-09-01 00:29:51 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 49 ms / 5,000 ms |
| コード長 | 164 bytes |
| コンパイル時間 | 272 ms |
| コンパイル使用メモリ | 82,304 KB |
| 実行使用メモリ | 61,696 KB |
| 最終ジャッジ日時 | 2024-11-17 03:00:31 |
| 合計ジャッジ時間 | 2,067 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 24 |
ソースコード
N = int(input())
S = '10' * (N // 2)
T = '01' * (N // 2)
if N != 2:
S += '1'
T += '0'
if input() in (S, T):
print('NO')
else:
print('YES')