結果
問題 | No.83 最大マッチング |
ユーザー | bayashiko_r |
提出日時 | 2018-11-08 00:54:50 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 598 bytes |
コンパイル時間 | 3,014 ms |
コンパイル使用メモリ | 98,096 KB |
実行使用メモリ | 25,372 KB |
最終ジャッジ日時 | 2023-08-13 04:13:18 |
合計ジャッジ時間 | 4,048 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 57 ms
21,040 KB |
testcase_01 | AC | 57 ms
25,056 KB |
testcase_02 | AC | 56 ms
20,892 KB |
testcase_03 | WA | - |
testcase_04 | AC | 56 ms
21,044 KB |
testcase_05 | WA | - |
testcase_06 | AC | 57 ms
23,232 KB |
testcase_07 | WA | - |
testcase_08 | AC | 56 ms
21,256 KB |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | WA | - |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System; class Program { static void Main(string[] args) { //入力 int N = int.Parse(Console.ReadLine()); //出力する数字 int ans = 0; //Nが偶数の時 if (N % 2 == 0) { for (int i = 0; i < N / 2; i++) { ans += (int)Math.Pow(10, i); } //Nが奇数の時 } else if (N % 2 == 1) { for (int i = 0; i < N / 2; i++) { ans += (int)Math.Pow(10, i); } ans += 6; } //出力 Console.WriteLine(ans); } }