結果
| 問題 |
No.83 最大マッチング
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-06-26 12:18:53 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 1,876 ms / 5,000 ms |
| コード長 | 844 bytes |
| コンパイル時間 | 7,209 ms |
| コンパイル使用メモリ | 102,144 KB |
| 実行使用メモリ | 40,832 KB |
| 最終ジャッジ日時 | 2024-11-16 14:43:22 |
| 合計ジャッジ時間 | 10,242 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;
using System.IO;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using System.Numerics;
using System.Diagnostics;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using static System.Math;
using static System.Console;
namespace yukicoder
{
class Program
{
static void Main()
{
var n = int.Parse(Console.ReadLine());
var ans = "";
while(n >= 1)
{
if (n % 2 == 0)
{
ans += "1";
n -= 2;
}
else
{
ans += "7";
n -= 3;
}
}
Console.WriteLine(ans);
}
}
}