結果
問題 | No.83 最大マッチング |
ユーザー |
|
提出日時 | 2018-02-20 11:14:09 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 1,922 ms / 5,000 ms |
コード長 | 273 bytes |
コンパイル時間 | 2,911 ms |
コンパイル使用メモリ | 101,888 KB |
実行使用メモリ | 40,704 KB |
最終ジャッジ日時 | 2024-07-18 16:47:29 |
合計ジャッジ時間 | 8,472 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;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);}}