結果

問題 No.498 ワープクリスタル (給料日編)
ユーザー tailstails
提出日時 2023-03-09 21:56:56
言語 cLay
(20240104-1)
結果
AC  
実行時間 253 ms / 2,000 ms
コード長 215 bytes
コンパイル時間 2,672 ms
コンパイル使用メモリ 175,500 KB
実行使用メモリ 4,348 KB
最終ジャッジ日時 2023-10-18 06:28:53
合計ジャッジ時間 6,612 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,348 KB
testcase_01 AC 1 ms
4,348 KB
testcase_02 AC 1 ms
4,348 KB
testcase_03 AC 2 ms
4,348 KB
testcase_04 AC 253 ms
4,348 KB
testcase_05 AC 1 ms
4,348 KB
testcase_06 AC 251 ms
4,348 KB
testcase_07 AC 250 ms
4,348 KB
testcase_08 AC 250 ms
4,348 KB
testcase_09 AC 251 ms
4,348 KB
testcase_10 AC 2 ms
4,348 KB
testcase_11 AC 36 ms
4,348 KB
testcase_12 AC 2 ms
4,348 KB
testcase_13 AC 10 ms
4,348 KB
testcase_14 AC 2 ms
4,348 KB
testcase_15 AC 3 ms
4,348 KB
testcase_16 AC 2 ms
4,348 KB
testcase_17 AC 3 ms
4,348 KB
testcase_18 AC 250 ms
4,348 KB
testcase_19 AC 251 ms
4,348 KB
testcase_20 AC 252 ms
4,348 KB
testcase_21 AC 251 ms
4,348 KB
testcase_22 AC 249 ms
4,348 KB
testcase_23 AC 250 ms
4,348 KB
testcase_24 AC 250 ms
4,348 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

ll x[5],y[],n[];
Mint z;

void f(ll d,ll u,ll v,ll t,Mint w){
	if(d--)
		rep(i,n[d]+1)
			f(d,u-x[d]*i,v-y[d]*i,t,w),w=w*++t/-~i;
	else
		z+=!(u|v)*w;
}

{
	ll@gx,@gy,@k;
	rd((x,y,n)(k));
	f(k,gx,gy,0,1);
	wt(z);
}
0