結果

問題 No.1068 #いろいろな色 / Red and Blue and more various colors (Hard)
ユーザー FF256grhyFF256grhy
提出日時 2022-01-29 14:20:06
言語 cLay
(20240104-1)
結果
TLE  
実行時間 -
コード長 205 bytes
コンパイル時間 8,737 ms
コンパイル使用メモリ 270,676 KB
実行使用メモリ 48,280 KB
最終ジャッジ日時 2023-08-30 12:18:16
合計ジャッジ時間 28,387 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,352 KB
testcase_01 AC 2 ms
4,356 KB
testcase_02 AC 2 ms
4,352 KB
testcase_03 AC 2,694 ms
4,700 KB
testcase_04 AC 1,463 ms
4,480 KB
testcase_05 AC 1,891 ms
4,504 KB
testcase_06 AC 1,021 ms
4,380 KB
testcase_07 AC 834 ms
4,460 KB
testcase_08 AC 1,668 ms
4,352 KB
testcase_09 AC 2,218 ms
4,352 KB
testcase_10 AC 412 ms
4,356 KB
testcase_11 AC 757 ms
4,356 KB
testcase_12 AC 291 ms
4,352 KB
testcase_13 TLE -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
testcase_25 -- -
testcase_26 -- -
testcase_27 -- -
testcase_28 -- -
testcase_29 -- -
testcase_30 -- -
testcase_31 -- -
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:695:17: warning: narrowing conversion of ‘((~ - a) % 998244353)’ from ‘long long int’ to ‘int’ inside { } [-Wnarrowing]
     s.set(i,{~-a%998244353,1});
              ~~~^~~~~~~~~~
main.cpp:695:17: warning: narrowing conversion of ‘((~ - a) % 998244353)’ from ‘long long int’ to ‘int’ inside { } [-Wnarrowing]

ソースコード

diff #

#include<atcoder/all>
VI c(VI a,VI b){return atcoder::convolution<>(a,b);}VI e(){return{1};}{ll@n,@q,a;atcoder::segtree<VI,c,e>s(n);rep(i,n)rd(a),s.set(i,{~-a%998244353,1});rep(q)rd(a),wt(s.prod(0,n)[a]);}
0