結果

問題 No.3820 TSG BINGO (All Language)
コンテスト
ユーザー alcea
提出日時 2026-11-15 01:00:03
言語 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
結果
AC  
実行時間 1 ms / 2,000 ms
+ 992µs
コード長 490 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 1,426 ms
コンパイル使用メモリ 213,872 KB
実行使用メモリ 9,920 KB
スコア 80
最終ジャッジ日時 2026-11-21 14:31:21
合計ジャッジ時間 4,308 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge5_0
純コード判定しない問題か言語
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 23
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#include <bits/stdc++.h>
using namespace std;
int memo[99];
int main(){
  for(int i=0;i<25;i++){
    int a;
    cin>>a;
    memo[a]=i+1;
  }
  int n;
  cin>>n;
  int bingo=0;
  for(int i=0;i<n;i++){
    int b;
    cin>>b;
    bingo|=1<<memo[b];
    int line[]={62,1984,55296,2031616,65011712,2164802,4329604,8651016,17318416,34636832,34078850,2228768,8651070,66115710,66177150};
    int ans=0;
    for(int j=0;j<15;j++){
      ans+=(bingo&line[j])==line[j];
    }
    cout<<ans<<endl;
  }
}
0