結果
問題 |
No.1089 三変数方程式
|
ユーザー |
|
提出日時 | 2020-07-02 01:31:43 |
言語 | OCaml (5.2.1) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 171 bytes |
コンパイル時間 | 475 ms |
コンパイル使用メモリ | 21,444 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-09 01:45:03 |
合計ジャッジ時間 | 1,327 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 15 |
ソースコード
Scanf.scanf "%d" (fun n -> let rec loop x acc = if x > n then acc else loop (x + 1) (acc + n - x + 1) in loop 0 0 |> Printf.printf "%d\n" )