結果

問題 No.83 最大マッチング
ユーザー kmtrc130kmtrc130
提出日時 2019-03-18 16:44:34
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 151 ms / 5,000 ms
コード長 519 bytes
コンパイル時間 1,920 ms
コンパイル使用メモリ 103,520 KB
実行使用メモリ 22,696 KB
最終ジャッジ日時 2023-09-25 14:19:30
合計ジャッジ時間 3,704 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 53 ms
20,676 KB
testcase_01 AC 53 ms
22,696 KB
testcase_02 AC 53 ms
20,800 KB
testcase_03 AC 52 ms
20,504 KB
testcase_04 AC 53 ms
20,700 KB
testcase_05 AC 52 ms
20,668 KB
testcase_06 AC 53 ms
22,656 KB
testcase_07 AC 53 ms
20,616 KB
testcase_08 AC 54 ms
22,544 KB
testcase_09 AC 63 ms
20,676 KB
testcase_10 AC 114 ms
22,660 KB
testcase_11 AC 151 ms
20,672 KB
testcase_12 AC 145 ms
20,672 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
using System.Collections.Generic;
using System.Linq;

class Program
{
    public void Solve()
    {
        int N = int.Parse(Console.ReadLine());

        int twoMs = 0;

        twoMs = N / 2;
        N %= 2;

        if (0 < N)
        {
            twoMs -= 1;
            Console.Write("7");
        }
        for (int i = 0; i < twoMs; i++) { Console.Write("1"); }

        Console.WriteLine();
    }

    static void Main()
    {
        var solver = new Program();
        solver.Solve();
    }
}
0