結果

問題 No.83 最大マッチング
ユーザー itok217itok217
提出日時 2017-05-28 19:05:18
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 444 bytes
コンパイル時間 2,851 ms
コンパイル使用メモリ 107,536 KB
実行使用メモリ 46,368 KB
最終ジャッジ日時 2023-10-21 13:58:16
合計ジャッジ時間 5,289 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 23 ms
23,788 KB
testcase_01 AC 24 ms
23,788 KB
testcase_02 AC 23 ms
23,788 KB
testcase_03 WA -
testcase_04 AC 22 ms
23,788 KB
testcase_05 AC 24 ms
23,788 KB
testcase_06 AC 23 ms
23,788 KB
testcase_07 WA -
testcase_08 AC 24 ms
23,788 KB
testcase_09 AC 34 ms
36,312 KB
testcase_10 AC 586 ms
46,368 KB
testcase_11 AC 1,134 ms
46,368 KB
testcase_12 AC 1,123 ms
46,368 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;
using System.Collections.Generic;

class Program {
    static void Main() {
        int n = int.Parse(Console.ReadLine());
        int a = n / 4;
        int b = n % 4;
        string s = "";
        for (int i = 0; i < a; i++) {
            s += "11";
        }
        if (b == 3) {
            s = "7" + s;
        } else if (b == 2) {
            s = "1" + s;
        }
        Console.WriteLine(s);
    }
}
0