結果
問題 |
No.290 1010
|
ユーザー |
![]() |
提出日時 | 2020-04-24 00:50:47 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 33 ms / 5,000 ms |
コード長 | 279 bytes |
コンパイル時間 | 93 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 12,540 KB |
最終ジャッジ日時 | 2024-10-14 09:05:50 |
合計ジャッジ時間 | 1,601 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 24 |
ソースコード
import sys input=lambda: sys.stdin.readline().rstrip() n=int(input()) S=input() if n==1: print("NO") elif n==2: if S=="10" or S=="01": print("NO") else: print("YES") elif n==3: if S=="010" or S=="101": print("NO") else: print("YES") else: print("YES")