結果

問題 No.1277 級数入り級数
ユーザー 遭難者遭難者
提出日時 2020-10-20 19:05:58
言語 Java17
(openjdk 17.0.1)
結果
AC  
実行時間 494 ms / 2,000 ms
コード長 406 bytes
コンパイル時間 2,352 ms
使用メモリ 39,916 KB
最終ジャッジ日時 2023-02-20 17:06:37
合計ジャッジ時間 17,531 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
使用メモリ
testcase_00 AC 93 ms
37,444 KB
testcase_01 AC 93 ms
37,572 KB
testcase_02 AC 92 ms
37,512 KB
testcase_03 AC 94 ms
37,404 KB
testcase_04 AC 93 ms
37,520 KB
testcase_05 AC 95 ms
37,584 KB
testcase_06 AC 93 ms
37,440 KB
testcase_07 AC 94 ms
37,628 KB
testcase_08 AC 93 ms
37,628 KB
testcase_09 AC 306 ms
37,924 KB
testcase_10 AC 295 ms
39,112 KB
testcase_11 AC 324 ms
38,372 KB
testcase_12 AC 248 ms
39,132 KB
testcase_13 AC 169 ms
37,908 KB
testcase_14 AC 341 ms
38,028 KB
testcase_15 AC 475 ms
37,736 KB
testcase_16 AC 371 ms
37,812 KB
testcase_17 AC 384 ms
37,844 KB
testcase_18 AC 476 ms
37,956 KB
testcase_19 AC 479 ms
37,812 KB
testcase_20 AC 166 ms
37,980 KB
testcase_21 AC 293 ms
37,988 KB
testcase_22 AC 345 ms
37,880 KB
testcase_23 AC 218 ms
38,088 KB
testcase_24 AC 440 ms
38,108 KB
testcase_25 AC 385 ms
37,816 KB
testcase_26 AC 494 ms
39,916 KB
testcase_27 AC 119 ms
38,032 KB
testcase_28 AC 334 ms
37,840 KB
testcase_29 AC 158 ms
38,028 KB
testcase_30 AC 309 ms
37,928 KB
testcase_31 AC 399 ms
37,784 KB
testcase_32 AC 277 ms
37,976 KB
testcase_33 AC 472 ms
37,900 KB
testcase_34 AC 361 ms
38,044 KB
testcase_35 AC 159 ms
37,836 KB
testcase_36 AC 189 ms
37,824 KB
testcase_37 AC 189 ms
37,860 KB
testcase_38 AC 183 ms
38,044 KB
testcase_39 AC 452 ms
37,744 KB
testcase_40 AC 156 ms
37,824 KB
testcase_41 AC 414 ms
39,744 KB
testcase_42 AC 392 ms
37,860 KB
testcase_43 AC 134 ms
37,772 KB
testcase_44 AC 112 ms
38,072 KB
testcase_45 AC 270 ms
37,808 KB
testcase_46 AC 271 ms
37,836 KB
testcase_47 AC 275 ms
38,180 KB
testcase_48 AC 282 ms
39,308 KB
testcase_49 AC 339 ms
37,804 KB
testcase_50 AC 96 ms
37,404 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.io.*;
public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		PrintWriter ou = new PrintWriter(System.out);
		int n = Integer.parseInt(sc.next());
		long q = 1;
		ou.println(q);
		for(int i = 2 ; i <= n ; i++){
			q *= i;
			q %= (int)Math.pow(10 , 9) + 7;
		}
		ou.println(q);
		ou.println(n);
		ou.flush();
		sc.close();
	}
}
0