結果
| 問題 | No.290 1010 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-04-13 21:11:30 |
| 言語 | Lua (LuaJit 2.1.1774638290) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 273 bytes |
| 記録 | |
| コンパイル時間 | 249 ms |
| コンパイル使用メモリ | 6,272 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-04-04 19:26:03 |
| 合計ジャッジ時間 | 793 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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