結果

問題 No.9001 標準入出力の練習問題(テスト用)
ユーザー arito_asu
提出日時 2020-06-17 20:47:06
言語 OCaml
(5.5.0)
コンパイル:
ocamlfind ocamlopt -linkpkg -package zarith,str _filename_ -o a.out
実行:
./a.out
結果
AC  
実行時間 1 ms / 1,000 ms
+ 12µs
コード長 218 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 102 ms
コンパイル使用メモリ 21,440 KB
実行使用メモリ 6,528 KB
最終ジャッジ日時 2026-09-12 07:42:22
合計ジャッジ時間 885 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 2
権限があれば一括ダウンロードができます
コンパイルメッセージ
ocamlfind: [WARNING] Cannot read directory ./stublibs which is mentioned in ld.conf

ソースコード

diff #
raw source code

let inp = Str.split (Str.regexp " ") (read_line ());;
let a = int_of_string (List.nth inp 0);;
let b = int_of_string (List.nth inp 1);;
let s = read_line ()

let n = string_of_int (a + b);;
print_string (n ^ " " ^ s);;
0