結果

問題 No.1422 Social Distance in Train
ユーザー natoriusannatoriusan
提出日時 2023-07-30 15:51:29
言語 F#
(F# 4.0)
結果
AC  
実行時間 330 ms / 2,000 ms
コード長 92 bytes
コンパイル時間 6,083 ms
コンパイル使用メモリ 185,996 KB
実行使用メモリ 34,856 KB
最終ジャッジ日時 2024-04-17 16:57:22
合計ジャッジ時間 11,511 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 327 ms
34,476 KB
testcase_01 AC 327 ms
34,220 KB
testcase_02 AC 329 ms
34,468 KB
testcase_03 AC 329 ms
33,712 KB
testcase_04 AC 327 ms
34,604 KB
testcase_05 AC 329 ms
33,920 KB
testcase_06 AC 327 ms
34,208 KB
testcase_07 AC 327 ms
33,956 KB
testcase_08 AC 330 ms
34,604 KB
testcase_09 AC 328 ms
34,604 KB
testcase_10 AC 328 ms
34,480 KB
testcase_11 AC 330 ms
34,856 KB
testcase_12 AC 327 ms
34,356 KB
testcase_13 AC 329 ms
34,476 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.fsproj を復元しました (211 ms)。
MSBuild のバージョン 17.9.6+a4ecab324 (.NET)
  main -> /home/judge/data/code/bin/Release/net8.0/main.dll
  main -> /home/judge/data/code/bin/Release/net8.0/publish/

ソースコード

diff #

let n = stdin.ReadLine () |> int

if n % 2 = 0 then
    n / 2 + 1
else
    1
|> printfn "%d"
0