結果

問題 No.646 逆ピラミッド
ユーザー arbtarbt
提出日時 2018-02-09 22:29:40
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 36 ms / 2,000 ms
コード長 1,276 bytes
コンパイル時間 2,024 ms
コンパイル使用メモリ 104,320 KB
実行使用メモリ 18,176 KB
最終ジャッジ日時 2024-04-17 04:48:33
合計ジャッジ時間 2,119 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 23 ms
17,920 KB
testcase_01 AC 36 ms
17,792 KB
testcase_02 AC 25 ms
17,792 KB
testcase_03 AC 32 ms
17,664 KB
testcase_04 AC 28 ms
17,920 KB
testcase_05 AC 27 ms
17,792 KB
testcase_06 AC 36 ms
18,176 KB
testcase_07 AC 24 ms
17,664 KB
testcase_08 AC 23 ms
17,664 KB
testcase_09 AC 24 ms
17,920 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

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;
  }
}
0