Written by
java-style
on
on
[BOJ] 01013 - Contact
[BOJ] 01013 - Contact
import java.util.* fun main() = with(Scanner(System.`in`)) { var T = readLine()!!.toInt() val regex_Vega = """^(100+1+|01)+$""".toRegex() while(T-- > 0) { val N = readLine()!! if(regex_Vega.find(N) != null ) println("YES") else println("NO") } }
공유하기 글 요소 저작자표시
from http://onsoim.tistory.com/135 by ccl(A) rewrite - 2021-10-24 19:28:06