結果
問題 | No.83 最大マッチング |
ユーザー |
|
提出日時 | 2017-06-24 23:38:56 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 22 ms / 5,000 ms |
コード長 | 747 bytes |
コンパイル時間 | 1,838 ms |
コンパイル使用メモリ | 109,596 KB |
実行使用メモリ | 17,792 KB |
最終ジャッジ日時 | 2024-10-04 04:44:02 |
合計ジャッジ時間 | 1,708 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 10 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System;using System.Text;namespace YukiCoder{class MaxMatching{static void Main(string[] args){var inputNum = Int32.Parse(Console.ReadLine());var result = new StringBuilder();var digits = inputNum / 2;if (inputNum % 2 == 0){for (int i = 0; i < digits; i++){result.Append("1");}}else{result.Append("7");for (int i = 0; i < digits - 1; i++){result.Append("1");}}Console.WriteLine(result.ToString());}}}