結果

問題 No.646 逆ピラミッド
ユーザー shinwisteriashinwisteria
提出日時 2018-02-15 22:40:26
言語 Java21
(openjdk 21)
結果
AC  
実行時間 186 ms / 2,000 ms
コード長 370 bytes
コンパイル時間 2,916 ms
コンパイル使用メモリ 72,844 KB
実行使用メモリ 58,040 KB
最終ジャッジ日時 2023-08-28 15:25:00
合計ジャッジ時間 5,178 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 126 ms
54,428 KB
testcase_01 AC 186 ms
56,036 KB
testcase_02 AC 120 ms
55,740 KB
testcase_03 AC 174 ms
56,092 KB
testcase_04 AC 171 ms
58,040 KB
testcase_05 AC 156 ms
56,456 KB
testcase_06 AC 179 ms
55,536 KB
testcase_07 AC 122 ms
54,108 KB
testcase_08 AC 120 ms
55,760 KB
testcase_09 AC 123 ms
55,528 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