結果

問題 No.646 逆ピラミッド
ユーザー tsunabittsunabit
提出日時 2018-07-15 15:16:43
言語 Java21
(openjdk 21)
結果
AC  
実行時間 188 ms / 2,000 ms
コード長 367 bytes
コンパイル時間 3,405 ms
コンパイル使用メモリ 74,104 KB
実行使用メモリ 56,368 KB
最終ジャッジ日時 2023-08-06 10:08:21
合計ジャッジ時間 5,635 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 128 ms
55,324 KB
testcase_01 AC 188 ms
55,908 KB
testcase_02 AC 122 ms
55,648 KB
testcase_03 AC 178 ms
56,136 KB
testcase_04 AC 173 ms
56,368 KB
testcase_05 AC 163 ms
55,964 KB
testcase_06 AC 182 ms
56,152 KB
testcase_07 AC 125 ms
55,816 KB
testcase_08 AC 129 ms
56,112 KB
testcase_09 AC 129 ms
56,088 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.util.stream.Stream;
import java.time.*;
import java.time.format.*;

public class No646 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		for(int i = 0; i < n; i++) {
			for(int j = 0; j < n -i; j++) {
				System.out.print(n);
			}
			System.out.println("");

		}
	}
}
0