結果
| 問題 |
No.1291 小手調べ
|
| コンテスト | |
| ユーザー |
oreo
|
| 提出日時 | 2020-11-22 15:21:55 |
| 言語 | C#(csc) (csc 3.9.0) |
| 結果 |
AC
|
| 実行時間 | 24 ms / 2,000 ms |
| コード長 | 1,068 bytes |
| コンパイル時間 | 1,053 ms |
| コンパイル使用メモリ | 112,820 KB |
| 実行使用メモリ | 23,776 KB |
| 最終ジャッジ日時 | 2024-07-23 16:34:05 |
| 合計ジャッジ時間 | 1,583 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 4 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System;
using System.Text;
namespace yukiCoder
{
class MainClass
{
public static void Main(string[] args)
{
var sw = new System.IO.StreamWriter(Console.OpenStandardOutput()) { AutoFlush = false };
Console.SetOut(sw);
int N = int.Parse(Console.ReadLine());
int[] dN = new int[N];
for (int i = 0; i < N; i++)
{
dN[i] = int.Parse(Console.ReadLine());
}
for (int j = 0; j < N; j++)
{
if (dN[j] == 1)
{
Console.WriteLine("10");
}
else
{
StringBuilder result = new StringBuilder();
result.Append("9");
for (int k = 1; k < dN[j]; k++)
{
result.Append("0");
}
Console.WriteLine(result);
}
}
Console.Out.Flush();
}
}
}
oreo