結果

問題 No.83 最大マッチング
ユーザー water_is_Iwater_is_I
提出日時 2017-09-24 04:29:10
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 2,075 ms / 5,000 ms
コード長 762 bytes
コンパイル時間 3,203 ms
コンパイル使用メモリ 103,372 KB
実行使用メモリ 46,320 KB
最終ジャッジ日時 2023-08-09 00:53:56
合計ジャッジ時間 9,906 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 52 ms
14,660 KB
testcase_01 AC 52 ms
14,512 KB
testcase_02 AC 52 ms
14,504 KB
testcase_03 AC 53 ms
14,500 KB
testcase_04 AC 54 ms
14,632 KB
testcase_05 AC 52 ms
14,712 KB
testcase_06 AC 53 ms
14,676 KB
testcase_07 AC 54 ms
14,632 KB
testcase_08 AC 55 ms
16,716 KB
testcase_09 AC 73 ms
40,928 KB
testcase_10 AC 1,081 ms
44,140 KB
testcase_11 AC 2,075 ms
46,320 KB
testcase_12 AC 2,044 ms
46,268 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 YukiCorderNo83_20170924 {
    class Program {
        /* 0:6
         * 1:2
         * 2:5
         * 3:5
         * 4:4
         * 5:5
         * 6:6
         * 7:3
         * 8:7
         * 9:6
         * ヤハリソウイウコトダッタノカ
         */
        // 1,7,4,5,9,8
        static void Main(string[] args) {
            int N = int.Parse(Console.ReadLine());
            string ans="";
            if (N <= 1) return;
            if (N % 2 != 0) {
                ans += "7";
                N -= 3;
            }
            for (int i = 0; i < (N / 2); i++) {
                ans += "1";
            }
            Console.WriteLine(ans);
        }

        static void ReturnMatchNum(int num) {
        }
    }
}
0