結果
| 問題 |
No.83 最大マッチング
|
| コンテスト | |
| ユーザー |
kimny
|
| 提出日時 | 2017-12-13 11:13:06 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 2,281 ms / 5,000 ms |
| コード長 | 603 bytes |
| コンパイル時間 | 825 ms |
| コンパイル使用メモリ | 110,308 KB |
| 実行使用メモリ | 40,576 KB |
| 最終ジャッジ日時 | 2024-12-14 09:03:45 |
| 合計ジャッジ時間 | 7,495 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / 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.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();
}
}
}
kimny