結果

問題 No.83 最大マッチング
ユーザー mrc1031mrc1031
提出日時 2016-10-11 14:00:56
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 104 ms / 5,000 ms
コード長 386 bytes
コンパイル時間 896 ms
コンパイル使用メモリ 107,744 KB
実行使用メモリ 26,072 KB
最終ジャッジ日時 2024-05-01 19:16:42
合計ジャッジ時間 1,764 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 21 ms
23,756 KB
testcase_01 AC 22 ms
23,768 KB
testcase_02 AC 21 ms
25,800 KB
testcase_03 AC 22 ms
23,764 KB
testcase_04 AC 20 ms
26,072 KB
testcase_05 AC 20 ms
23,508 KB
testcase_06 AC 19 ms
23,768 KB
testcase_07 AC 20 ms
23,392 KB
testcase_08 AC 20 ms
23,724 KB
testcase_09 AC 30 ms
23,640 KB
testcase_10 AC 81 ms
25,676 KB
testcase_11 AC 104 ms
23,892 KB
testcase_12 AC 104 ms
23,720 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.Linq;

class Program
{
    static void Main(string[] args)
    {
        // No.83 最大マッチング

        int N = int.Parse(Console.ReadLine());

        if (N % 2 == 1)
        {
            Console.Write("7");
            N -= 3;
        }

        for (int i = 0; i < N; i += 2)
            Console.Write("1");

        Console.WriteLine();
    }
}
0