結果
問題 | No.290 1010 |
ユーザー |
![]() |
提出日時 | 2024-01-01 15:58:52 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 187 bytes |
コンパイル時間 | 151 ms |
コンパイル使用メモリ | 82,572 KB |
実行使用メモリ | 58,480 KB |
最終ジャッジ日時 | 2024-09-27 17:24:14 |
合計ジャッジ時間 | 2,181 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 18 WA * 6 |
ソースコード
N = int(input()) S = input() if N == 1: print("NO") elif N == 2: if S in ["01","10"]: print("NO") elif N == 3: if S in ["101","010"]: print("NO") print("YES")