結果

問題 No.1127 変形パスカルの三角形
ユーザー 👑 tails
提出日時 2020-07-26 13:17:11
言語 cLay
(20241019-1 + boost 1.89.0)
結果
AC  
実行時間 7 ms / 1,500 ms
コード長 114 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 3,907 ms
コンパイル使用メモリ 178,320 KB
実行使用メモリ 6,656 KB
最終ジャッジ日時 2024-07-05 13:44:32
合計ジャッジ時間 4,979 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 30
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

{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