結果

問題 No.1469 programing
ユーザー eseharaesehara
提出日時 2021-06-02 01:21:29
言語 OCaml
(5.1.0)
結果
WA  
実行時間 -
コード長 271 bytes
コンパイル時間 225 ms
コンパイル使用メモリ 19,692 KB
実行使用メモリ 816,060 KB
最終ジャッジ日時 2024-04-26 09:59:02
合計ジャッジ時間 2,441 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 MLE -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

let rec read_byte (i, last) =
  try
    let x = input_char stdin in
    if (String.length i) > 0 && (last = x) then read_byte (i, last)
    else read_byte (i ^ (String.make 1 x), x)
  with
  | End_of_file -> i;;

read_byte ("", '\x00') |> print_string; print_newline ();;
0