結果
問題 |
No.83 最大マッチング
|
ユーザー |
|
提出日時 | 2017-05-28 19:45:23 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 363 bytes |
コンパイル時間 | 867 ms |
コンパイル使用メモリ | 102,272 KB |
実行使用メモリ | 18,816 KB |
最終ジャッジ日時 | 2024-09-21 15:12:59 |
合計ジャッジ時間 | 1,970 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 1 |
other | AC * 4 WA * 6 |
コンパイルメッセージ
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; using System.Collections.Generic; class Program { static void Main() { int n = int.Parse(Console.ReadLine()); string s = ""; if (n % 2 == 1) { Console.Write(7); } for (int i = n; i >= 2; i -= 2) { Console.Write(1); } Console.WriteLine(); } }