結果
問題 | No.83 最大マッチング |
ユーザー |
|
提出日時 | 2017-01-24 16:00:19 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 2,074 ms / 5,000 ms |
コード長 | 528 bytes |
コンパイル時間 | 930 ms |
コンパイル使用メモリ | 103,296 KB |
実行使用メモリ | 40,704 KB |
最終ジャッジ日時 | 2024-12-23 07:54:56 |
合計ジャッジ時間 | 6,938 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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.Linq;class Program{static void Main(string[] args){int N = int.Parse(Console.ReadLine());string ans = "";while (true){if (N == 0){break;}if (N == 3){ans = "7" + ans;N -= 3;}else{ans += "1";N -= 2;}}Console.WriteLine(ans);}}