結果

問題 No.83 最大マッチング
ユーザー うわばみうわばみ
提出日時 2020-04-29 20:38:21
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 57 ms / 5,000 ms
コード長 447 bytes
コンパイル時間 952 ms
コンパイル使用メモリ 65,644 KB
実行使用メモリ 22,828 KB
最終ジャッジ日時 2023-08-19 22:20:07
合計ジャッジ時間 2,563 ms
ジャッジサーバーID
(参考情報)
judge10 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 57 ms
22,828 KB
testcase_01 AC 56 ms
20,592 KB
testcase_02 AC 57 ms
22,696 KB
testcase_03 AC 57 ms
20,676 KB
testcase_04 AC 56 ms
18,732 KB
testcase_05 AC 55 ms
20,684 KB
testcase_06 AC 56 ms
20,792 KB
testcase_07 AC 56 ms
20,636 KB
testcase_08 AC 57 ms
20,664 KB
testcase_09 AC 57 ms
22,728 KB
testcase_10 AC 57 ms
20,616 KB
testcase_11 AC 57 ms
20,792 KB
testcase_12 AC 57 ms
22,712 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;

class Program
{
    static void Main()
    {
        int n = int.Parse(Console.ReadLine());
        StringBuilder sb = new StringBuilder();
        if(n % 2 == 1)
        {
            sb.Append("7");
            n -= 3;
        }
        for(int i = 0; i < n; i += 2)
        {
            sb.Append("1");
        }
        Console.WriteLine($"{sb}");
    }
}
0