結果

問題 No.83 最大マッチング
ユーザー thglaflsthglafls
提出日時 2023-04-29 23:16:45
言語 F#
(F# 4.0)
結果
AC  
実行時間 158 ms / 5,000 ms
コード長 273 bytes
コンパイル時間 7,885 ms
コンパイル使用メモリ 189,168 KB
実行使用メモリ 37,760 KB
最終ジャッジ日時 2024-04-29 12:24:36
合計ジャッジ時間 9,854 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 68 ms
30,336 KB
testcase_01 AC 66 ms
30,336 KB
testcase_02 AC 65 ms
30,336 KB
testcase_03 AC 67 ms
30,208 KB
testcase_04 AC 67 ms
30,336 KB
testcase_05 AC 66 ms
30,336 KB
testcase_06 AC 67 ms
30,336 KB
testcase_07 AC 65 ms
30,336 KB
testcase_08 AC 65 ms
30,208 KB
testcase_09 AC 77 ms
31,104 KB
testcase_10 AC 130 ms
35,584 KB
testcase_11 AC 158 ms
37,632 KB
testcase_12 AC 156 ms
37,760 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.fsproj を復元しました (276 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 even n =
    for _ in 1..n do
        printf "1"

    printf "\n"

let odd n =
    printf "7"

    for _ in 2..n do
        printf "1"

    printf "\n"


let main =
    let input = stdin.ReadLine() |> int
    if input % 2 = 0 then even (input / 2) else odd (input / 2)
0