結果

問題 No.1127 変形パスカルの三角形
ユーザー tailstails
提出日時 2020-07-26 13:17:11
言語 cLay
(20240104-1)
結果
AC  
実行時間 8 ms / 1,500 ms
コード長 114 bytes
コンパイル時間 3,990 ms
コンパイル使用メモリ 174,124 KB
実行使用メモリ 6,604 KB
最終ジャッジ日時 2023-09-19 00:50:35
合計ジャッジ時間 6,446 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,376 KB
testcase_01 AC 8 ms
6,516 KB
testcase_02 AC 6 ms
5,680 KB
testcase_03 AC 5 ms
5,024 KB
testcase_04 AC 3 ms
4,380 KB
testcase_05 AC 4 ms
4,764 KB
testcase_06 AC 8 ms
6,604 KB
testcase_07 AC 4 ms
4,380 KB
testcase_08 AC 4 ms
4,376 KB
testcase_09 AC 7 ms
6,056 KB
testcase_10 AC 7 ms
5,988 KB
testcase_11 AC 6 ms
5,512 KB
testcase_12 AC 6 ms
5,404 KB
testcase_13 AC 6 ms
5,208 KB
testcase_14 AC 4 ms
4,912 KB
testcase_15 AC 4 ms
4,376 KB
testcase_16 AC 6 ms
5,024 KB
testcase_17 AC 3 ms
4,380 KB
testcase_18 AC 5 ms
5,316 KB
testcase_19 AC 6 ms
5,700 KB
testcase_20 AC 7 ms
5,884 KB
testcase_21 AC 6 ms
5,852 KB
testcase_22 AC 3 ms
4,380 KB
testcase_23 AC 7 ms
6,092 KB
testcase_24 AC 5 ms
4,968 KB
testcase_25 AC 5 ms
5,056 KB
testcase_26 AC 5 ms
5,248 KB
testcase_27 AC 6 ms
5,536 KB
testcase_28 AC 6 ms
5,528 KB
testcase_29 AC 3 ms
4,376 KB
testcase_30 AC 3 ms
4,380 KB
testcase_31 AC 6 ms
5,656 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

{ll x,y,n,k;rd(x,y,n--,k--);Mint a=x,b=y;Comb<Mint>c;wtLn(c.C(n,k)*a+c.C(n,k-1)*b,c.C(2n,n)*(a*a+b*b-2a*b*n/~n));}
0