結果

問題 No.83 最大マッチング
ユーザー thglaflsthglafls
提出日時 2023-04-29 23:16:45
言語 F#
(F# 4.0)
結果
AC  
実行時間 175 ms / 5,000 ms
コード長 273 bytes
コンパイル時間 4,871 ms
コンパイル使用メモリ 155,392 KB
実行使用メモリ 28,748 KB
最終ジャッジ日時 2023-08-11 21:34:45
合計ジャッジ時間 7,290 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
24,596 KB
testcase_01 AC 70 ms
22,500 KB
testcase_02 AC 73 ms
24,652 KB
testcase_03 AC 71 ms
22,648 KB
testcase_04 AC 71 ms
22,508 KB
testcase_05 AC 70 ms
22,496 KB
testcase_06 AC 71 ms
24,664 KB
testcase_07 AC 71 ms
22,620 KB
testcase_08 AC 71 ms
24,648 KB
testcase_09 AC 85 ms
24,604 KB
testcase_10 AC 148 ms
28,584 KB
testcase_11 AC 175 ms
26,692 KB
testcase_12 AC 173 ms
28,748 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) F# Compiler version 11.0.0.0 for F# 5.0
Copyright (c) Microsoft Corporation. All Rights Reserved.

ソースコード

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