結果

問題 No.1469 programing
ユーザー eseharaesehara
提出日時 2021-06-02 01:23:58
言語 OCaml
(5.1.0)
結果
MLE  
実行時間 -
コード長 253 bytes
コンパイル時間 188 ms
コンパイル使用メモリ 19,828 KB
実行使用メモリ 815,676 KB
最終ジャッジ日時 2024-04-26 09:59:08
合計ジャッジ時間 2,402 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
5,248 KB
testcase_01 AC 1 ms
5,376 KB
testcase_02 AC 2 ms
5,376 KB
testcase_03 AC 2 ms
5,376 KB
testcase_04 AC 2 ms
5,376 KB
testcase_05 AC 4 ms
5,760 KB
testcase_06 AC 1 ms
5,376 KB
testcase_07 AC 3 ms
5,760 KB
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;;
0