結果

問題 No.646 逆ピラミッド
ユーザー YOSHIYOSHI
提出日時 2021-03-22 18:49:41
言語 Java21
(openjdk 21)
結果
AC  
実行時間 89 ms / 2,000 ms
コード長 462 bytes
コンパイル時間 3,701 ms
コンパイル使用メモリ 74,608 KB
実行使用メモリ 38,632 KB
最終ジャッジ日時 2024-05-03 07:40:55
合計ジャッジ時間 4,899 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 60 ms
37,096 KB
testcase_01 AC 89 ms
38,632 KB
testcase_02 AC 58 ms
37,216 KB
testcase_03 AC 70 ms
38,036 KB
testcase_04 AC 61 ms
36,876 KB
testcase_05 AC 58 ms
36,920 KB
testcase_06 AC 89 ms
38,240 KB
testcase_07 AC 55 ms
37,104 KB
testcase_08 AC 57 ms
37,032 KB
testcase_09 AC 59 ms
36,876 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class No00000646_Main {
	static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	public static void main(String[] args) throws IOException {
		String ns = br.readLine();
		int n = Integer.parseInt(ns);
		for(int i = n; 0 < i; i--) {
			String s = "";
			for(int j = 0; j < i; j++) {
				s += ns;
			}
			System.out.println(s);
		}
	}
}
0