結果

問題 No.290 1010
コンテスト
ユーザー ldsyb
提出日時 2016-05-21 20:06:40
言語 Scheme
(Gauche-0.9.15)
コンパイル:
true
実行:
gosh _filename_
結果
AC  
実行時間 33 ms / 5,000 ms
+ 698µs
コード長 196 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 37 ms
コンパイル使用メモリ 6,528 KB
実行使用メモリ 18,304 KB
最終ジャッジ日時 2026-09-11 06:06:58
合計ジャッジ時間 2,652 ms
ジャッジサーバーID
(参考情報)
judge1_0 / judge3_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