結果

問題 No.83 最大マッチング
ユーザー zmirezzmirez
提出日時 2018-08-26 14:17:06
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 148 ms / 5,000 ms
コード長 446 bytes
コンパイル時間 3,405 ms
コンパイル使用メモリ 105,156 KB
実行使用メモリ 22,772 KB
最終ジャッジ日時 2023-09-13 19:17:26
合計ジャッジ時間 4,993 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 54 ms
22,772 KB
testcase_01 AC 54 ms
20,796 KB
testcase_02 AC 54 ms
20,732 KB
testcase_03 AC 54 ms
18,516 KB
testcase_04 AC 53 ms
20,720 KB
testcase_05 AC 54 ms
22,672 KB
testcase_06 AC 54 ms
20,704 KB
testcase_07 AC 54 ms
20,644 KB
testcase_08 AC 54 ms
20,840 KB
testcase_09 AC 64 ms
22,740 KB
testcase_10 AC 118 ms
20,640 KB
testcase_11 AC 148 ms
20,740 KB
testcase_12 AC 144 ms
20,572 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){
        int N=int.Parse(Console.ReadLine());
        if(N%2==1){
            Console.Write("7");
            for(int i=0;i<N/2-1;i++){
                Console.Write("1");
            }
            Console.WriteLine();
        }else if(N%2==0){
            for(int i=0;i<N/2;i++){
                Console.Write("1");
            }
            Console.WriteLine();
        }
    }
} 
0