結果

問題 No.1068 #いろいろな色 / Red and Blue and more various colors (Hard)
ユーザー FF256grhy
提出日時 2022-01-29 13:39:13
言語 cLay
(20241019-1)
結果
WA  
実行時間 -
コード長 160 bytes
コンパイル時間 6,166 ms
コンパイル使用メモリ 270,568 KB
実行使用メモリ 31,132 KB
最終ジャッジ日時 2025-01-01 23:38:49
合計ジャッジ時間 30,008 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 13 WA * 16
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:108:12: warning: narrowing conversion of ‘(a - 1)’ from ‘long long int’ to ‘int’ [-Wnarrowing]
  108 |     v[i]={a-1,1};
      |           ~^~
main.cpp:108:12: warning: narrowing conversion of ‘(a - 1)’ from ‘long long int’ to ‘int’ [-Wnarrowing]

ソースコード

diff #

#include<atcoder/all>
{ll@n,@q,a;VVI v(4d5,{1});rep(i,n)rd(a),v[i]={a-1,1};rep(18)rep(i,2d5)v[i]=atcoder::convolution<>(v[2i],v[2i+1]);rep(q)rd(a),wt(v[0][a]);}
0