結果
| 問題 | No.1469 programing | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2021-06-02 01:23:58 | 
| 言語 | OCaml (5.2.1) | 
| 結果 | 
                                MLE
                                 
                             | 
| 実行時間 | - | 
| コード長 | 253 bytes | 
| コンパイル時間 | 1,555 ms | 
| コンパイル使用メモリ | 19,692 KB | 
| 実行使用メモリ | 816,704 KB | 
| 最終ジャッジ日時 | 2024-11-09 00:25:55 | 
| 合計ジャッジ時間 | 4,235 ms | 
| ジャッジサーバーID (参考情報) | judge5 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 5 MLE * 1 -- * 9 | 
ソースコード
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;;
            
            
            
        