結果

問題 No.1327 グラフの数え上げ
ユーザー 👑 NachiaNachia
提出日時 2020-12-27 20:27:22
言語 cLay
(20240104-1)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 245 bytes
コンパイル時間 1,916 ms
コンパイル使用メモリ 159,448 KB
実行使用メモリ 4,384 KB
最終ジャッジ日時 2023-09-19 02:00:34
合計ジャッジ時間 14,957 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,384 KB
testcase_01 TLE -
testcase_02 AC 1,018 ms
4,384 KB
testcase_03 AC 1,018 ms
4,380 KB
testcase_04 AC 2 ms
4,384 KB
testcase_05 AC 2 ms
4,384 KB
testcase_06 AC 2 ms
4,384 KB
testcase_07 AC 2 ms
4,380 KB
testcase_08 AC 3 ms
4,380 KB
testcase_09 AC 169 ms
4,380 KB
testcase_10 AC 1,633 ms
4,384 KB
testcase_11 AC 1,017 ms
4,380 KB
testcase_12 AC 1,017 ms
4,380 KB
testcase_13 AC 1,017 ms
4,380 KB
testcase_14 AC 1,016 ms
4,384 KB
testcase_15 AC 1,016 ms
4,380 KB
testcase_16 AC 1,018 ms
4,380 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

ll M=1000000007,D=1<<27,x=0,A=0,
T[]={1,638916270,864357307,711403642,373979365,963971145,183143523,894672548};
{
	char c; while(c=getchar(),'0'<=c&&c<='9'&&x<=M) x=x*10+c-'0';
	x=min(x-1,M);
	A=T[x/D];
	rep(i,x++/D*D+1,x) A=M-A*i%M;
	wt(A%M);
}
0