結果

問題 No.83 最大マッチング
ユーザー water_is_Iwater_is_I
提出日時 2017-09-24 04:29:10
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 1,920 ms / 5,000 ms
コード長 762 bytes
コンパイル時間 1,236 ms
コンパイル使用メモリ 103,168 KB
実行使用メモリ 40,832 KB
最終ジャッジ日時 2024-04-26 16:50:01
合計ジャッジ時間 6,544 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 21 ms
17,792 KB
testcase_01 AC 21 ms
17,664 KB
testcase_02 AC 21 ms
17,664 KB
testcase_03 AC 21 ms
17,408 KB
testcase_04 AC 21 ms
17,664 KB
testcase_05 AC 21 ms
17,664 KB
testcase_06 AC 21 ms
17,664 KB
testcase_07 AC 20 ms
17,536 KB
testcase_08 AC 20 ms
17,408 KB
testcase_09 AC 44 ms
39,552 KB
testcase_10 AC 991 ms
40,832 KB
testcase_11 AC 1,911 ms
40,704 KB
testcase_12 AC 1,920 ms
40,576 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