結果

問題 No.908 うしたぷにきあくん文字列
ユーザー ducktailducktail
提出日時 2019-10-18 21:58:24
言語 Scheme
(Gauche-0.9.14)
結果
AC  
実行時間 27 ms / 2,000 ms
コード長 396 bytes
コンパイル時間 166 ms
コンパイル使用メモリ 7,072 KB
実行使用メモリ 16,640 KB
最終ジャッジ日時 2024-06-25 15:59:24
合計ジャッジ時間 2,296 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 27 ms
16,512 KB
testcase_01 AC 27 ms
16,384 KB
testcase_02 AC 26 ms
16,640 KB
testcase_03 AC 27 ms
16,512 KB
testcase_04 AC 27 ms
16,512 KB
testcase_05 AC 27 ms
16,640 KB
testcase_06 AC 27 ms
16,512 KB
testcase_07 AC 27 ms
16,384 KB
testcase_08 AC 27 ms
16,384 KB
testcase_09 AC 27 ms
16,512 KB
testcase_10 AC 26 ms
16,384 KB
testcase_11 AC 26 ms
16,512 KB
testcase_12 AC 27 ms
16,640 KB
testcase_13 AC 27 ms
16,384 KB
testcase_14 AC 27 ms
16,384 KB
testcase_15 AC 27 ms
16,512 KB
testcase_16 AC 26 ms
16,384 KB
testcase_17 AC 26 ms
16,384 KB
testcase_18 AC 27 ms
16,640 KB
testcase_19 AC 27 ms
16,640 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