結果

問題 No.83 最大マッチング
ユーザー nuwasoginuwasogi
提出日時 2015-11-22 16:13:54
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 155 ms / 5,000 ms
コード長 430 bytes
コンパイル時間 1,910 ms
コンパイル使用メモリ 101,104 KB
実行使用メモリ 22,752 KB
最終ジャッジ日時 2023-10-11 18:13:20
合計ジャッジ時間 3,770 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 55 ms
20,816 KB
testcase_01 AC 53 ms
20,720 KB
testcase_02 AC 53 ms
20,696 KB
testcase_03 AC 54 ms
20,728 KB
testcase_04 AC 53 ms
20,612 KB
testcase_05 AC 54 ms
20,692 KB
testcase_06 AC 54 ms
20,584 KB
testcase_07 AC 54 ms
22,636 KB
testcase_08 AC 54 ms
18,760 KB
testcase_09 AC 66 ms
22,752 KB
testcase_10 AC 126 ms
20,780 KB
testcase_11 AC 153 ms
22,732 KB
testcase_12 AC 155 ms
20,816 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;

namespace Saidai_Matching
{
    class Program
    {
        static void Main(string[] args)
        {
            int N = int.Parse(Console.ReadLine());
            if (N % 2 == 1)
            {
                Console.Write("7");
                N -= 3;
            }
            for(; N >=2; N-=2)
            {
                Console.Write("1");
            }
            Console.WriteLine();
        }
    }
}
0