結果

問題 No.908 うしたぷにきあくん文字列
ユーザー ducktailducktail
提出日時 2019-10-18 21:58:24
言語 Scheme
(Gauche-0.9.14)
結果
AC  
実行時間 21 ms / 2,000 ms
コード長 396 bytes
コンパイル時間 208 ms
コンパイル使用メモリ 5,296 KB
実行使用メモリ 14,268 KB
最終ジャッジ日時 2023-09-07 22:23:26
合計ジャッジ時間 1,992 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 21 ms
12,072 KB
testcase_01 AC 20 ms
14,268 KB
testcase_02 AC 20 ms
12,152 KB
testcase_03 AC 21 ms
12,296 KB
testcase_04 AC 20 ms
12,076 KB
testcase_05 AC 20 ms
12,292 KB
testcase_06 AC 21 ms
12,264 KB
testcase_07 AC 20 ms
12,180 KB
testcase_08 AC 20 ms
12,152 KB
testcase_09 AC 20 ms
12,096 KB
testcase_10 AC 21 ms
12,296 KB
testcase_11 AC 20 ms
12,180 KB
testcase_12 AC 20 ms
12,100 KB
testcase_13 AC 20 ms
12,080 KB
testcase_14 AC 20 ms
12,092 KB
testcase_15 AC 19 ms
12,116 KB
testcase_16 AC 19 ms
12,160 KB
testcase_17 AC 19 ms
12,104 KB
testcase_18 AC 19 ms
12,320 KB
testcase_19 AC 19 ms
12,148 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

(use util.match)

(define (main args)
  (print
   (let1 ls (string->list (read-line))
         (let loop ([ls ls])
           (match ls
                  [(a b . c) (if (and (char-lower-case? a) (char=? b #\space))
                                 (loop c)
                                 "No")]
                  [(a) (if (char-lower-case? a) "Yes" "No")]
                  [() "Yes"]))))
  0)
0