結果
問題 | No.353 ヘイトプラス |
ユーザー |
![]() |
提出日時 | 2017-08-16 21:06:47 |
言語 | OCaml (5.2.1) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 186 bytes |
コンパイル時間 | 224 ms |
コンパイル使用メモリ | 21,700 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-10-09 00:22:45 |
合計ジャッジ時間 | 811 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 7 |
ソースコード
let () =let a, b = Scanf.scanf "%d %d " (fun a b -> a, b) inlet rec doit a b =if b = 0 then aelse doit (a lxor b) ((a land b) lsl 1) indoit a b |> Printf.printf "%d\n"