結果
| 問題 |
No.290 1010
|
| コンテスト | |
| ユーザー |
👑 |
| 提出日時 | 2019-04-13 21:11:30 |
| 言語 | Lua (LuaJit 2.1.1734355927) |
| 結果 |
AC
|
| 実行時間 | 4 ms / 5,000 ms |
| コード長 | 273 bytes |
| コンパイル時間 | 292 ms |
| コンパイル使用メモリ | 5,504 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-09-15 11:19:13 |
| 合計ジャッジ時間 | 1,146 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 24 |
ソースコード
n, z = io.read("*n", "*l")
s = io.read()
if(4 <= n) then print("YES")
elseif(n == 1) then print("NO")
elseif(n == 2) then
if(s == "00" or s == "11") then print("YES") else print("NO") end
else
if(s == "101" or s == "010") then print("NO") else print("YES") end
end