結果

問題 No.83 最大マッチング
ユーザー AdamantiteAdamantite
提出日時 2023-06-28 17:04:32
言語 C#
(.NET 8.0.203)
結果
AC  
実行時間 654 ms / 5,000 ms
コード長 380 bytes
コンパイル時間 7,476 ms
コンパイル使用メモリ 144,200 KB
実行使用メモリ 192,736 KB
最終ジャッジ日時 2023-09-18 20:53:38
合計ジャッジ時間 10,538 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 48 ms
28,140 KB
testcase_01 AC 49 ms
28,020 KB
testcase_02 AC 49 ms
27,880 KB
testcase_03 AC 49 ms
30,068 KB
testcase_04 AC 48 ms
27,960 KB
testcase_05 AC 48 ms
27,876 KB
testcase_06 AC 47 ms
28,044 KB
testcase_07 AC 48 ms
28,188 KB
testcase_08 AC 49 ms
29,960 KB
testcase_09 AC 71 ms
51,136 KB
testcase_10 AC 400 ms
54,172 KB
testcase_11 AC 648 ms
57,460 KB
testcase_12 AC 654 ms
192,736 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
  Determining projects to restore...
  Restored /home/judge/data/code/main.csproj (in 175 ms).
.NET 向け Microsoft (R) Build Engine バージョン 17.0.0-preview-21470-01+cb055d28f
Copyright (C) Microsoft Corporation.All rights reserved.

  プレビュー版の .NET を使用しています。https://aka.ms/dotnet-core-preview をご覧ください
  main -> /home/judge/data/code/bin/Release/net6.0/main.dll
  main -> /home/judge/data/code/bin/Release/net6.0/publish/

ソースコード

diff #

using System;

namespace No83_MaximumMatching
{
    internal class Program
    {
        static void Main(string[] args) {
            int n = int.Parse(Console.ReadLine());
            string result = n % 2 == 0 ? "1" : "7";
            for (int i = 0; i < (n - 2) / 2; i++) {
                result += "1";
            }
            Console.WriteLine(result);
        }
    }
}
0