結果

問題 No.676 C0nvertPr0b1em
ユーザー neko_the_shadowneko_the_shadow
提出日時 2018-05-07 23:06:19
言語 Scheme
(Gauche-0.9.14)
結果
AC  
実行時間 20 ms / 2,000 ms
コード長 239 bytes
コンパイル時間 64 ms
コンパイル使用メモリ 5,216 KB
実行使用メモリ 14,212 KB
最終ジャッジ日時 2023-09-05 17:12:00
合計ジャッジ時間 2,163 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 18 ms
12,052 KB
testcase_01 AC 18 ms
12,028 KB
testcase_02 AC 18 ms
12,220 KB
testcase_03 AC 19 ms
13,976 KB
testcase_04 AC 19 ms
12,044 KB
testcase_05 AC 19 ms
12,052 KB
testcase_06 AC 20 ms
11,956 KB
testcase_07 AC 18 ms
12,084 KB
testcase_08 AC 18 ms
12,052 KB
testcase_09 AC 19 ms
12,056 KB
testcase_10 AC 19 ms
12,108 KB
testcase_11 AC 18 ms
12,280 KB
testcase_12 AC 19 ms
12,056 KB
testcase_13 AC 19 ms
12,072 KB
testcase_14 AC 18 ms
12,204 KB
testcase_15 AC 19 ms
14,212 KB
testcase_16 AC 18 ms
12,092 KB
testcase_17 AC 19 ms
12,256 KB
testcase_18 AC 19 ms
12,096 KB
testcase_19 AC 19 ms
12,240 KB
testcase_20 AC 19 ms
12,244 KB
testcase_21 AC 19 ms
12,076 KB
testcase_22 AC 18 ms
12,112 KB
testcase_23 AC 19 ms
12,056 KB
testcase_24 AC 18 ms
12,008 KB
testcase_25 AC 18 ms
12,052 KB
testcase_26 AC 18 ms
12,024 KB
testcase_27 AC 18 ms
12,096 KB
testcase_28 AC 19 ms
12,088 KB
testcase_29 AC 19 ms
13,940 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

(use srfi-13)

(define (convert ch)
  (if (or (equal? ch #\I) (equal? ch #\l))
    #\1
    (if (or (equal? ch #\O) (equal? ch #\o))
      #\0
      ch)))

(define (MAIN)
  (let ((s (read-line)))
    (print (string-map convert s))))

(MAIN)
0