結果

問題 No.646 逆ピラミッド
ユーザー tsunabittsunabit
提出日時 2018-07-15 15:16:43
言語 Java21
(openjdk 21)
結果
AC  
実行時間 189 ms / 2,000 ms
コード長 367 bytes
コンパイル時間 2,980 ms
コンパイル使用メモリ 75,856 KB
実行使用メモリ 42,496 KB
最終ジャッジ日時 2024-04-24 06:03:50
合計ジャッジ時間 5,198 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 124 ms
41,640 KB
testcase_01 AC 189 ms
42,484 KB
testcase_02 AC 112 ms
41,696 KB
testcase_03 AC 169 ms
42,148 KB
testcase_04 AC 149 ms
41,488 KB
testcase_05 AC 140 ms
41,440 KB
testcase_06 AC 172 ms
42,496 KB
testcase_07 AC 114 ms
41,236 KB
testcase_08 AC 118 ms
41,808 KB
testcase_09 AC 118 ms
41,480 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