結果

問題 No.676 C0nvertPr0b1em
コンテスト
ユーザー neko_the_shadow
提出日時 2018-05-07 23:06:19
言語 Scheme
(Gauche-0.9.15)
コンパイル:
true
実行:
gosh _filename_
結果
AC  
実行時間 18 ms / 2,000 ms
+ 764µs
コード長 239 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 3 ms
コンパイル使用メモリ 5,888 KB
実行使用メモリ 17,024 KB
最終ジャッジ日時 2026-07-27 21:25:40
合計ジャッジ時間 2,632 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 30
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

(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