結果

問題 No.646 逆ピラミッド
ユーザー GBGB
提出日時 2018-04-26 16:45:46
言語 Java21
(openjdk 21)
結果
AC  
実行時間 125 ms / 2,000 ms
コード長 392 bytes
コンパイル時間 3,340 ms
コンパイル使用メモリ 71,120 KB
実行使用メモリ 52,012 KB
最終ジャッジ日時 2023-09-10 05:36:44
合計ジャッジ時間 4,771 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 48 ms
49,228 KB
testcase_01 AC 125 ms
51,516 KB
testcase_02 AC 44 ms
49,652 KB
testcase_03 AC 121 ms
51,556 KB
testcase_04 AC 88 ms
51,340 KB
testcase_05 AC 77 ms
51,284 KB
testcase_06 AC 118 ms
52,012 KB
testcase_07 AC 44 ms
49,312 KB
testcase_08 AC 43 ms
49,280 KB
testcase_09 AC 45 ms
49,392 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.*;
import java.util.*;
import java.lang.*;

class Main{
  public static void main(String[] args) throws IOException{
    BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
    int n=Integer.parseInt(br.readLine());

    for (int i=n;i>=1 ;i-- ) {
      for (int j=1;j<=i ;j++ ) {
        System.out.print(n);
      }
      System.out.println();
    }
  }
}
0