結果

問題 No.83 最大マッチング
ユーザー mrc1031mrc1031
提出日時 2016-10-11 14:00:56
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 143 ms / 5,000 ms
コード長 386 bytes
コンパイル時間 2,215 ms
コンパイル使用メモリ 103,160 KB
実行使用メモリ 22,844 KB
最終ジャッジ日時 2023-08-14 06:31:59
合計ジャッジ時間 4,113 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 54 ms
22,784 KB
testcase_01 AC 54 ms
18,740 KB
testcase_02 AC 54 ms
22,672 KB
testcase_03 AC 53 ms
20,696 KB
testcase_04 AC 54 ms
20,592 KB
testcase_05 AC 53 ms
20,684 KB
testcase_06 AC 54 ms
20,860 KB
testcase_07 AC 54 ms
20,664 KB
testcase_08 AC 54 ms
20,664 KB
testcase_09 AC 63 ms
20,732 KB
testcase_10 AC 119 ms
20,648 KB
testcase_11 AC 143 ms
22,844 KB
testcase_12 AC 143 ms
20,752 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