結果
問題 | No.815 Are you a traveller ? |
ユーザー | tak |
提出日時 | 2019-04-26 18:17:01 |
言語 | F# (F# 4.0) |
結果 |
AC
|
実行時間 | 57 ms / 2,000 ms |
コード長 | 150 bytes |
コンパイル時間 | 4,410 ms |
コンパイル使用メモリ | 164,072 KB |
実行使用メモリ | 24,072 KB |
最終ジャッジ日時 | 2023-08-16 07:15:55 |
合計ジャッジ時間 | 6,093 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 57 ms
20,204 KB |
testcase_01 | AC | 56 ms
22,060 KB |
testcase_02 | AC | 56 ms
22,020 KB |
testcase_03 | AC | 55 ms
19,936 KB |
testcase_04 | AC | 57 ms
24,048 KB |
testcase_05 | AC | 55 ms
24,072 KB |
testcase_06 | AC | 55 ms
22,020 KB |
コンパイルメッセージ
Microsoft (R) F# Compiler version 11.0.0.0 for F# 5.0 Copyright (c) Microsoft Corporation. All Rights Reserved.
ソースコード
open System let solve x = match x % 2 with | 0 -> x / 2 | _ -> x / 2 + 1 let N = Console.ReadLine() |> int solve N |> Console.WriteLine