結果

問題 No.646 逆ピラミッド
ユーザー shinwisteriashinwisteria
提出日時 2018-02-15 22:52:42
言語 Java21
(openjdk 21)
結果
AC  
実行時間 190 ms / 2,000 ms
コード長 370 bytes
コンパイル時間 3,218 ms
コンパイル使用メモリ 71,460 KB
実行使用メモリ 56,228 KB
最終ジャッジ日時 2023-08-28 15:30:36
合計ジャッジ時間 5,671 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 131 ms
56,004 KB
testcase_01 AC 190 ms
55,752 KB
testcase_02 AC 121 ms
55,828 KB
testcase_03 AC 178 ms
56,020 KB
testcase_04 AC 171 ms
56,136 KB
testcase_05 AC 160 ms
56,228 KB
testcase_06 AC 181 ms
55,796 KB
testcase_07 AC 125 ms
55,864 KB
testcase_08 AC 122 ms
55,840 KB
testcase_09 AC 127 ms
55,788 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