結果

問題 No.646 逆ピラミッド
ユーザー yamax3232yamax3232
提出日時 2018-03-14 11:23:51
言語 Java21
(openjdk 21)
結果
AC  
実行時間 188 ms / 2,000 ms
コード長 341 bytes
コンパイル時間 2,133 ms
コンパイル使用メモリ 71,536 KB
実行使用メモリ 56,204 KB
最終ジャッジ日時 2023-08-18 03:53:05
合計ジャッジ時間 4,577 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 129 ms
55,712 KB
testcase_01 AC 188 ms
56,000 KB
testcase_02 AC 123 ms
55,820 KB
testcase_03 AC 177 ms
56,204 KB
testcase_04 AC 167 ms
55,892 KB
testcase_05 AC 158 ms
55,992 KB
testcase_06 AC 182 ms
56,008 KB
testcase_07 AC 125 ms
55,760 KB
testcase_08 AC 125 ms
55,736 KB
testcase_09 AC 130 ms
55,708 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main{

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner kb=new Scanner(System.in);
		int a=kb.nextInt();
		int j=a;
		for(int i=0;i<a;i++){
			for(int k=0;k<j;k++){
				System.out.print(a);

			}
			System.out.println();
			j--;
		}



	}

}
0