結果

問題 No.646 逆ピラミッド
ユーザー GrenacheGrenache
提出日時 2018-02-09 22:22:40
言語 Java21
(openjdk 21)
結果
AC  
実行時間 155 ms / 2,000 ms
コード長 610 bytes
コンパイル時間 3,435 ms
コンパイル使用メモリ 74,840 KB
実行使用メモリ 41,856 KB
最終ジャッジ日時 2024-04-17 04:30:35
合計ジャッジ時間 5,498 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 121 ms
40,212 KB
testcase_01 AC 149 ms
41,764 KB
testcase_02 AC 123 ms
40,372 KB
testcase_03 AC 149 ms
41,504 KB
testcase_04 AC 155 ms
41,456 KB
testcase_05 AC 152 ms
41,588 KB
testcase_06 AC 143 ms
41,856 KB
testcase_07 AC 132 ms
41,492 KB
testcase_08 AC 139 ms
41,432 KB
testcase_09 AC 132 ms
41,344 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.*;
import java.util.*;


public class Main_yukicoder646 {

	private static Scanner sc;
	private static Printer pr;

	private static void solve() {
		int n = sc.nextInt();

		for (int i = n; i > 0; i--) {
			for (int j = 0; j < i; j++) {
				pr.print(n);
			}
			pr.println();
		}
	}

	// ---------------------------------------------------
	public static void main(String[] args) {
		sc = new Scanner(System.in);
		pr = new Printer(System.out);

		solve();

		pr.close();
		sc.close();
	}

	private static class Printer extends PrintWriter {
		Printer(PrintStream out) {
			super(out);
		}
	}
}
0