結果
問題 | No.83 最大マッチング |
ユーザー | kimny |
提出日時 | 2017-12-13 11:13:06 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 2,154 ms / 5,000 ms |
コード長 | 603 bytes |
コンパイル時間 | 2,170 ms |
コンパイル使用メモリ | 105,868 KB |
実行使用メモリ | 46,244 KB |
最終ジャッジ日時 | 2023-08-21 01:23:34 |
合計ジャッジ時間 | 8,995 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge11 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 54 ms
20,608 KB |
testcase_01 | AC | 54 ms
20,684 KB |
testcase_02 | AC | 55 ms
20,576 KB |
testcase_03 | AC | 55 ms
20,732 KB |
testcase_04 | AC | 55 ms
20,640 KB |
testcase_05 | AC | 54 ms
20,716 KB |
testcase_06 | AC | 54 ms
20,628 KB |
testcase_07 | AC | 55 ms
20,628 KB |
testcase_08 | AC | 55 ms
20,688 KB |
testcase_09 | AC | 74 ms
43,048 KB |
testcase_10 | AC | 1,103 ms
46,216 KB |
testcase_11 | AC | 2,154 ms
46,196 KB |
testcase_12 | AC | 2,121 ms
46,244 KB |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace yukicoder_83 { class Program { static void Main(string[] args) { int n = int.Parse(Console.ReadLine()); string ans; if (n % 2 == 0) { ans = "1"; } else { ans = "7"; } int keta = n / 2; for (int i = 0; i < keta - 1; i++) { ans += 1; } Console.WriteLine(ans); Console.ReadLine(); } } }