結果

問題 No.3818 TSG BINGO (C++)
コンテスト
ユーザー yamada
提出日時 2026-11-23 05:13:57
言語 C++17
(gcc 15.3.0 + boost 1.92.0 + ACL)
コンパイル:
g++-15 -O2 -fplugin=/usr/lib/yukicoder/noavx512-gcc15.so -lm -std=c++17 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
WA  
実行時間 -
コード長 284 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 399 ms
コンパイル使用メモリ 84,336 KB
実行使用メモリ 9,904 KB
スコア 0
最終ジャッジ日時 2026-11-23 05:14:01
合計ジャッジ時間 3,615 ms
ジャッジサーバーID
(参考情報)
judge6_0 / judge5_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 1
other AC * 16 WA * 7
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp:1:2: warning: '#import' is a deprecated GCC extension [-Wdeprecated]
    1 | #import<iostream>
      |  ^~~~~~
main.cpp:2:21: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    2 | int x[99],m,c,z,o,i;main(){for(;i<25;i++)std::cin>>z,x[z]=i;for(std::cin>>i;i--;){std::cin>>z;c|=1<<x[z];o=0;for(auto _:{31,992,27648,31<<15,31<<20,1082401,2164802,4325508,8659208,17318416,4325535,33057855,33088575,17039425,1114384})o+=c==(c|_);std::cout<<o<<"\n";}}
      |                     ^~~~

ソースコード

diff #
raw source code

#import<iostream>
int x[99],m,c,z,o,i;main(){for(;i<25;i++)std::cin>>z,x[z]=i;for(std::cin>>i;i--;){std::cin>>z;c|=1<<x[z];o=0;for(auto _:{31,992,27648,31<<15,31<<20,1082401,2164802,4325508,8659208,17318416,4325535,33057855,33088575,17039425,1114384})o+=c==(c|_);std::cout<<o<<"\n";}}
0