結果
問題 |
No.646 逆ピラミッド
|
ユーザー |
![]() |
提出日時 | 2018-09-08 14:18:32 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
WA
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 313 bytes |
コンパイル時間 | 1,127 ms |
コンパイル使用メモリ | 111,200 KB |
実行使用メモリ | 26,204 KB |
最終ジャッジ日時 | 2024-12-16 03:22:39 |
合計ジャッジ時間 | 1,956 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | WA * 7 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System; public class Hello { public static void Main() { var n = int.Parse(Console.ReadLine().Trim()); var ns = n.ToString(); for (int i = n; i >= 0; i--) { var w = new string('*', i).Replace("*", ns); Console.WriteLine(w); } } }