結果

問題 No.83 最大マッチング
ユーザー itok217
提出日時 2017-05-28 19:05:18
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 444 bytes
コンパイル時間 2,829 ms
コンパイル使用メモリ 102,016 KB
実行使用メモリ 40,192 KB
最終ジャッジ日時 2024-09-21 15:12:48
合計ジャッジ時間 5,947 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 8 WA * 2
権限があれば一括ダウンロードができます
コンパイルメッセージ
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