結果

問題 No.83 最大マッチング
ユーザー taktak
提出日時 2018-04-10 19:45:32
言語 F#
(F# 4.0)
結果
AC  
実行時間 81 ms / 5,000 ms
コード長 173 bytes
コンパイル時間 3,236 ms
コンパイル使用メモリ 158,648 KB
実行使用メモリ 22,896 KB
最終ジャッジ日時 2023-09-09 03:48:23
合計ジャッジ時間 5,119 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 79 ms
22,728 KB
testcase_01 AC 79 ms
22,672 KB
testcase_02 AC 80 ms
22,672 KB
testcase_03 AC 80 ms
22,640 KB
testcase_04 AC 80 ms
22,548 KB
testcase_05 AC 79 ms
22,572 KB
testcase_06 AC 80 ms
20,632 KB
testcase_07 AC 79 ms
22,572 KB
testcase_08 AC 79 ms
22,628 KB
testcase_09 AC 79 ms
20,728 KB
testcase_10 AC 79 ms
22,896 KB
testcase_11 AC 81 ms
22,876 KB
testcase_12 AC 81 ms
22,776 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) F# Compiler version 11.0.0.0 for F# 5.0
Copyright (c) Microsoft Corporation. All Rights Reserved.

ソースコード

diff #

let N = System.Console.ReadLine() |> int

if   N<2   then "0"
elif N%2=0 then String.replicate (N/2) "1"
else            "7" + String.replicate ((N-3)/2) "1"
|> printfn "%s"
0