結果

問題 No.290 1010
コンテスト
ユーザー ldsyb
提出日時 2016-05-21 20:06:40
言語 Scheme
(Gauche-0.9.15)
コンパイル:
true
実行:
gosh _filename_
結果
AC  
実行時間 34 ms / 5,000 ms
コード長 196 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 251 ms
コンパイル使用メモリ 6,784 KB
実行使用メモリ 18,304 KB
最終ジャッジ日時 2026-04-23 03:22:54
合計ジャッジ時間 1,856 ms
ジャッジサーバーID
(参考情報)
judge3_1 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 24
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

(define n (read-line))
(define s (read-line))
(if (or (string=? s "010") (string=? s "101") (string=? s "01") (string=? s "10") (= (string-length s) 1))
	(display "NO")
	(display "YES"))
(newline)
0