結果
問題 | No.83 最大マッチング |
ユーザー |
|
提出日時 | 2018-10-03 20:28:44 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 706 bytes |
コンパイル時間 | 815 ms |
コンパイル使用メモリ | 112,336 KB |
実行使用メモリ | 26,072 KB |
最終ジャッジ日時 | 2024-10-12 10:27:11 |
合計ジャッジ時間 | 1,786 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 2 WA * 8 |
コンパイルメッセージ
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.Text;namespace Problem083{class Program{static void Main(string[] args){var n = int.Parse(Console.ReadLine());var ans = new StringBuilder();Process(n, ans);Console.WriteLine(ans);Console.ReadKey();}static void Process(int n, StringBuilder ans){if (n >= 3 && n != 4){ans.Append(7);n -= 3;} else if (n >= 2){ans.Append(1);n -= 2;}if (n >= 2) Process(n, ans);}}}