結果

問題 No.646 逆ピラミッド
ユーザー shinwisteriashinwisteria
提出日時 2018-02-15 22:36:25
言語 Java21
(openjdk 21)
結果
AC  
実行時間 189 ms / 2,000 ms
コード長 369 bytes
コンパイル時間 4,978 ms
コンパイル使用メモリ 71,912 KB
実行使用メモリ 56,272 KB
最終ジャッジ日時 2023-08-28 15:24:41
合計ジャッジ時間 5,409 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 130 ms
56,004 KB
testcase_01 AC 189 ms
56,272 KB
testcase_02 AC 122 ms
55,724 KB
testcase_03 AC 178 ms
56,192 KB
testcase_04 AC 163 ms
55,724 KB
testcase_05 AC 153 ms
55,828 KB
testcase_06 AC 181 ms
55,868 KB
testcase_07 AC 122 ms
55,312 KB
testcase_08 AC 119 ms
55,228 KB
testcase_09 AC 125 ms
55,980 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package m.shin;

import java.util.Scanner;

public class Gyakupiramid {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner s = new Scanner(System.in);
		int N = s.nextInt();
		s.close();
		for(int i = N;i >= 1;i--){
			for(int k = 1;k <= i;k++){
				System.out.print(N);
			}
			System.out.println();
		}

	}

}
0