結果
| 問題 | No.83 最大マッチング |
| コンテスト | |
| ユーザー |
suzu
|
| 提出日時 | 2023-04-21 10:07:52 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
不安定
|
| 実行時間 | 79 ms / 5,000 ms |
| + 371µs | |
| コード長 | 776 bytes |
| 記録 | |
| コンパイル時間 | 2,094 ms |
| コンパイル使用メモリ | 110,456 KB |
| 実行使用メモリ | 26,564 KB |
| 最終ジャッジ日時 | 2026-09-19 13:58:48 |
| 合計ジャッジ時間 | 3,661 ms |
|
ジャッジサーバーID (参考情報) |
judge7_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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;
namespace yukicoder
{
class Program
{
static void Main(string[] args)
{
int n = int.Parse(Console.ReadLine());
if(n % 2 == 0)//偶数の時
{
int i = 0;
while(i < n/2)
{
Console.Write(1);
i++;
}
}else if(n == 1)//1の時
{
Console.WriteLine(1);
}else//3以上の奇数の時
{
int m = 0;
m = n - 3;
Console.Write(7);
for(int i = 0;i < m / 2;i++)
{
Console.Write(1);
}
}
}
}
}
suzu