結果
問題 | No.646 逆ピラミッド |
ユーザー |
![]() |
提出日時 | 2018-02-09 22:29:40 |
言語 | C#(csc) (csc 3.9.0) |
結果 |
AC
|
実行時間 | 33 ms / 2,000 ms |
コード長 | 1,276 bytes |
コンパイル時間 | 820 ms |
コンパイル使用メモリ | 110,908 KB |
実行使用メモリ | 26,020 KB |
最終ジャッジ日時 | 2024-10-08 15:40:36 |
合計ジャッジ時間 | 1,857 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 7 |
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc) Copyright (C) Microsoft Corporation. All rights reserved.
ソースコード
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Diagnostics; using System.IO; using System.Numerics; // 参照 class _Class { void _Do() { var N = Split.ints()[0]; for (int i=N;i>0 ;i--) { for(int j=i;j>0 ;j--) Console.Write(N); Console.WriteLine(); } } static void Main(string[] args) { new _Class()._Do(); } } // static class Split { // 1 public static string[] strings() { return Console.ReadLine().Split(); } // [2.1] -2,147,483,648 ~ +2,147,483,647 public static int[] ints() { var _s = Console.ReadLine().Split(); var x = new int[_s.Length]; for (var i = 0; i < _s.Length; i++) x[i] = int.Parse(_s[i]); return x; } // [2.2] // -9,223,372,036,854,775,808 ~ // +9,223,372,036,854,775,807 public static long[] longs() { var _s = Console.ReadLine().Split(); var x = new long[_s.Length]; for (var i = 0; i < _s.Length; i++) x[i] = long.Parse(_s[i]); return x; } public static BigInteger[] bigs() { var _s = Console.ReadLine().Split(); var x = new BigInteger[_s.Length]; for (var i = 0; i < _s.Length; i++) x[i] = BigInteger.Parse(_s[i]); return x; } }