結果

問題 No.83 最大マッチング
ユーザー PoronPaPoronPa
提出日時 2019-04-18 20:06:49
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 2,036 ms / 5,000 ms
コード長 387 bytes
コンパイル時間 763 ms
コンパイル使用メモリ 106,196 KB
実行使用メモリ 47,004 KB
最終ジャッジ日時 2023-10-23 16:22:55
合計ジャッジ時間 7,179 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 22 ms
23,916 KB
testcase_01 AC 22 ms
23,916 KB
testcase_02 AC 24 ms
23,924 KB
testcase_03 AC 22 ms
23,924 KB
testcase_04 AC 22 ms
23,924 KB
testcase_05 AC 22 ms
23,924 KB
testcase_06 AC 22 ms
23,924 KB
testcase_07 AC 22 ms
23,924 KB
testcase_08 AC 23 ms
23,924 KB
testcase_09 AC 41 ms
45,696 KB
testcase_10 AC 1,069 ms
47,004 KB
testcase_11 AC 2,036 ms
47,004 KB
testcase_12 AC 2,033 ms
47,004 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
class Program
{
    static void Main(string[] args)
    {
        string s = Console.ReadLine();
        int Matti = int.Parse(s);
        int Keta = Matti / 2;
        string Ans = string.Empty;
        Ans = Matti % 2 == 1 ? "7" : "1";
        for(int Loop = 1; Loop < Keta; Loop++)
        {
            Ans = Ans + "1";
        }
        Console.WriteLine(Ans);
    }
}
0