結果

問題 No.83 最大マッチング
ユーザー chankou0920chankou0920
提出日時 2018-02-20 11:14:09
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 2,164 ms / 5,000 ms
コード長 273 bytes
コンパイル時間 3,913 ms
コンパイル使用メモリ 100,464 KB
実行使用メモリ 46,288 KB
最終ジャッジ日時 2023-09-25 20:58:52
合計ジャッジ時間 10,694 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 54 ms
20,744 KB
testcase_01 AC 54 ms
20,736 KB
testcase_02 AC 55 ms
20,632 KB
testcase_03 AC 55 ms
20,784 KB
testcase_04 AC 55 ms
20,744 KB
testcase_05 AC 55 ms
20,620 KB
testcase_06 AC 54 ms
20,756 KB
testcase_07 AC 54 ms
22,768 KB
testcase_08 AC 54 ms
20,732 KB
testcase_09 AC 73 ms
44,988 KB
testcase_10 AC 1,101 ms
46,288 KB
testcase_11 AC 2,152 ms
46,232 KB
testcase_12 AC 2,164 ms
46,220 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;

public class Program {
	public static void Main() {
		int n = int.Parse(Console.ReadLine());
		string ans = "";
		while (n > 1) {
			if (n % 2 == 0) {
				ans += "1";
				n -= 2;
			} else {
				ans += "7";
				n -= 3;
			}
		}
		Console.WriteLine(ans);
	}
}
0