結果

問題 No.646 逆ピラミッド
ユーザー fal_rndfal_rnd
提出日時 2018-02-12 17:36:57
言語 Java21
(openjdk 21)
結果
AC  
実行時間 189 ms / 2,000 ms
コード長 230 bytes
コンパイル時間 2,020 ms
コンパイル使用メモリ 73,876 KB
実行使用メモリ 42,388 KB
最終ジャッジ日時 2024-05-03 16:37:58
合計ジャッジ時間 4,289 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 122 ms
40,080 KB
testcase_01 AC 186 ms
41,176 KB
testcase_02 AC 127 ms
41,220 KB
testcase_03 AC 174 ms
41,384 KB
testcase_04 AC 166 ms
40,996 KB
testcase_05 AC 149 ms
40,232 KB
testcase_06 AC 189 ms
42,388 KB
testcase_07 AC 118 ms
40,120 KB
testcase_08 AC 126 ms
40,980 KB
testcase_09 AC 136 ms
41,212 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
class A{
	public static void main(String[]$){
		Scanner s=new Scanner(System.in);
		int n=s.nextInt();
		for(int i=n;i>0;--i) {
			for(int j=i;j>0;--j)
				System.out.print(n);
			System.out.println();
		}
	}
}
0