結果

問題 No.1469 programing
ユーザー eseharaesehara
提出日時 2021-06-02 01:27:13
言語 OCaml
(5.1.0)
結果
AC  
実行時間 2,618 ms / 3,000 ms
コード長 200 bytes
コンパイル時間 239 ms
コンパイル使用メモリ 19,560 KB
実行使用メモリ 266,692 KB
最終ジャッジ日時 2024-04-26 09:59:13
合計ジャッジ時間 4,643 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
6,812 KB
testcase_01 AC 1 ms
6,944 KB
testcase_02 AC 1 ms
6,944 KB
testcase_03 AC 2 ms
6,940 KB
testcase_04 AC 2 ms
6,940 KB
testcase_05 AC 3 ms
6,948 KB
testcase_06 AC 2 ms
6,944 KB
testcase_07 AC 3 ms
6,944 KB
testcase_08 AC 43 ms
11,140 KB
testcase_09 AC 54 ms
11,268 KB
testcase_10 AC 50 ms
11,392 KB
testcase_11 AC 25 ms
19,720 KB
testcase_12 AC 18 ms
11,144 KB
testcase_13 AC 1 ms
6,944 KB
testcase_14 AC 31 ms
19,336 KB
testcase_15 AC 159 ms
19,848 KB
testcase_16 AC 252 ms
36,108 KB
testcase_17 AC 2,618 ms
266,692 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

let rec read_byte last =
  try
    let x = input_char stdin in
    if (last = x)
    then read_byte last
    else print_char x; read_byte x;
  with
  | End_of_file -> ();;

let () = read_byte '\x00';;
0