結果

問題 No.646 逆ピラミッド
ユーザー YamaKasa
提出日時 2018-04-19 16:02:01
言語 Java
(openjdk 23)
結果
RE  
実行時間 -
コード長 450 bytes
コンパイル時間 2,269 ms
コンパイル使用メモリ 73,764 KB
実行使用メモリ 41,652 KB
最終ジャッジ日時 2024-06-27 04:48:55
合計ジャッジ時間 3,857 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample RE * 3
other RE * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main{
	public static void main(String[] args) {
		//System.out.println("ピラミッドの段数");
		Scanner scanner = new Scanner(System.in);
		int N = scanner.nextInt();
		//System.out.println("ピラミッドの数字");
		int num = scanner.nextInt();
		scanner.close();
		int k = N;
		while(k >=0) {
			for(int i=0; i < k; i++) {
				System.out.print(num);
			}
			System.out.println();
			k+=-1;
		}
	}
}
0