結果

問題 No.793 うし数列 2
ユーザー xRS43BofaUEZ5gcxRS43BofaUEZ5gc
提出日時 2021-03-04 11:15:01
言語 Java19
(openjdk 21)
結果
WA  
実行時間 -
コード長 349 bytes
コンパイル時間 3,400 ms
コンパイル使用メモリ 72,016 KB
実行使用メモリ 56,168 KB
最終ジャッジ日時 2023-07-27 17:19:39
合計ジャッジ時間 9,215 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 125 ms
56,168 KB
testcase_01 AC 126 ms
55,728 KB
testcase_02 AC 126 ms
55,764 KB
testcase_03 AC 126 ms
55,744 KB
testcase_04 AC 126 ms
56,056 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 TLE -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class HelloWorld {

	    public static void main(String[] args) throws Exception {

	    	Scanner sc = new Scanner(System.in);
	    	long n = sc.nextLong();
	    	sc.close();

	    	long e = 1;
	    	for (int i = 0; i < n; i ++) {
	    		e = e * 10 + 3;
	    	}

	    	System.out.println(e % 1000000007);
	    	}

}
0