結果
問題 | No.83 最大マッチング |
ユーザー |
|
提出日時 | 2020-01-03 09:10:31 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 22 ms / 5,000 ms |
コード長 | 467 bytes |
コンパイル時間 | 3,941 ms |
コンパイル使用メモリ | 111,232 KB |
実行使用メモリ | 17,760 KB |
最終ジャッジ日時 | 2024-11-22 18:55:00 |
合計ジャッジ時間 | 5,020 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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;class Program {static void Main(string[] args) {if (!int.TryParse(Console.ReadLine(), out var input))return;string output;if (input < 2) {output = "0";}else if (input % 2 == 0) {output = new string('1', input / 2);}else {output = "7" + new string('1', (input - 3) / 2);}Console.WriteLine(output);}}