結果

問題 No.646 逆ピラミッド
ユーザー GodNegotoGodNegoto
提出日時 2019-11-27 17:18:56
言語 Java19
(openjdk 21)
結果
AC  
実行時間 185 ms / 2,000 ms
コード長 322 bytes
コンパイル時間 7,029 ms
コンパイル使用メモリ 71,344 KB
実行使用メモリ 56,532 KB
最終ジャッジ日時 2023-08-08 12:45:34
合計ジャッジ時間 8,170 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 125 ms
56,008 KB
testcase_01 AC 185 ms
55,976 KB
testcase_02 AC 120 ms
55,820 KB
testcase_03 AC 172 ms
55,828 KB
testcase_04 AC 174 ms
55,848 KB
testcase_05 AC 155 ms
55,584 KB
testcase_06 AC 177 ms
55,928 KB
testcase_07 AC 119 ms
56,532 KB
testcase_08 AC 119 ms
55,616 KB
testcase_09 AC 121 ms
55,496 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package algo;

import java.util.Scanner;
import java.util.*;

public class sample7 {

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