結果

問題 No.1810 RGB Biscuits
ユーザー tailstails
提出日時 2022-01-19 19:52:46
言語 cLay
(20240104-1)
結果
AC  
実行時間 39 ms / 2,000 ms
コード長 267 bytes
コンパイル時間 6,675 ms
コンパイル使用メモリ 190,080 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-05-02 19:53:37
合計ジャッジ時間 6,711 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
5,248 KB
testcase_01 AC 2 ms
5,248 KB
testcase_02 AC 2 ms
5,376 KB
testcase_03 AC 2 ms
5,376 KB
testcase_04 AC 2 ms
5,376 KB
testcase_05 AC 36 ms
5,376 KB
testcase_06 AC 38 ms
5,376 KB
testcase_07 AC 39 ms
5,376 KB
testcase_08 AC 39 ms
5,376 KB
testcase_09 AC 39 ms
5,376 KB
testcase_10 AC 24 ms
5,376 KB
testcase_11 AC 2 ms
5,376 KB
testcase_12 AC 2 ms
5,376 KB
testcase_13 AC 2 ms
5,376 KB
testcase_14 AC 8 ms
5,376 KB
testcase_15 AC 2 ms
5,376 KB
testcase_16 AC 4 ms
5,376 KB
testcase_17 AC 19 ms
5,376 KB
testcase_18 AC 19 ms
5,376 KB
testcase_19 AC 2 ms
5,376 KB
testcase_20 AC 1 ms
5,376 KB
testcase_21 AC 5 ms
5,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

ll@a,@b,@n;
Polynomial<Mint>p,m,e,f;
p.change(0,a);
p.change(1,1);
m.change(0,-b);
m.change(1,a);
m.change(2,1);
e.change(0,1);
e.change(1,1);
f.change(0,a-b-1);
f.change(2,1);
rep(n){
	ll@t;
	Polynomial<Mint>d=PowMod(p,t/2,m)*e%m;
	if(t%2)d=d*p%f;
	Wt(int(d(1)));
}
0