結果

問題 No.1068 #いろいろな色 / Red and Blue and more various colors (Hard)
ユーザー FF256grhyFF256grhy
提出日時 2022-01-07 18:45:54
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 275 bytes
コンパイル時間 4,819 ms
コンパイル使用メモリ 264,172 KB
実行使用メモリ 32,768 KB
最終ジャッジ日時 2024-04-26 15:52:59
合計ジャッジ時間 31,277 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
testcase_31 AC 258 ms
17,664 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
    1 | #import<bits/stdc++.h>
      |  ^~~~~~
main.cpp:2:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
    2 | #import<atcoder/all>
      |  ^~~~~~
main.cpp:4:21: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    4 | using namespace std;main(){long n,q,a;cin>>n>>q;vector v(1<<18,vector{1LL});F(n)cin>>a,v[i]={a-1,1};F(18)F(1<<17)v[i]=atcoder::convolution<998244353>(v[2*i],v[2*i+1]);F(q)cin>>a,cout<<v[0][a]<<" ";}
      |                     ^~~~

ソースコード

diff #

#import<bits/stdc++.h>
#import<atcoder/all>
#define F(n)for(int i=0;i<n;i++)
using namespace std;main(){long n,q,a;cin>>n>>q;vector v(1<<18,vector{1LL});F(n)cin>>a,v[i]={a-1,1};F(18)F(1<<17)v[i]=atcoder::convolution<998244353>(v[2*i],v[2*i+1]);F(q)cin>>a,cout<<v[0][a]<<" ";}
0