結果

問題 No.3818 TSG BINGO (C++)
コンテスト
ユーザー yamada
提出日時 2026-11-23 07:51:17
言語 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  
実行時間 -
コード長 278 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 374 ms
コンパイル使用メモリ 84,712 KB
実行使用メモリ 9,900 KB
スコア 0
最終ジャッジ日時 2026-11-23 07:51:23
合計ジャッジ時間 4,601 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 2
other WA * 23
権限があれば一括ダウンロードができます
コンパイルメッセージ
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;)std::cin>>z,x[z]=i;for(std::cin>>i;std::cin>>z;){c|=1<<x[z];o=0;for(auto _:{62,1984,55296,62<<15,62<<20,2164802,4329604,8651016,17318416,34636832,8651070,66115710,66177150,34078850,2228768})o+=c==(c|_);printf("%d ",o);}}
      |                     ^~~~

ソースコード

diff #
raw source code

#import<iostream>
int x[99],m,c,z,o,i;main(){for(;i++<25;)std::cin>>z,x[z]=i;for(std::cin>>i;std::cin>>z;){c|=1<<x[z];o=0;for(auto _:{62,1984,55296,62<<15,62<<20,2164802,4329604,8651016,17318416,34636832,8651070,66115710,66177150,34078850,2228768})o+=c==(c|_);printf("%d ",o);}}
0