結果
| 問題 | No.3820 TSG BINGO (All Language) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-11-15 17:05:00 |
| 言語 | C++17 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 2 ms / 2,000 ms |
| + 148µs | |
| コード長 | 751 bytes |
| 記録 | |
| コンパイル時間 | 1,376 ms |
| コンパイル使用メモリ | 214,144 KB |
| 実行使用メモリ | 9,868 KB |
| スコア | 50 |
| 最終ジャッジ日時 | 2026-11-21 14:31:28 |
| 合計ジャッジ時間 | 3,667 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
| 純コード判定しない問題か言語 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 23 |
コンパイルメッセージ
main.cpp:1:2: warning: '#import' is a deprecated GCC extension [-Wdeprecated]
1 | #import<bits/stdc++.h>
| ^~~~~~
main.cpp:6:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
6 | main(){
| ^~~~
ソースコード
#import<bits/stdc++.h>
using namespace std;
int m[99],a,i,n,B,q,
//L[]={62,1984,55296,2031616,65011712,2164802,4329604,8651016,17318416,34636832,34078850,2228768,8651070,66115710,66177150};
*L=(int*)">\x00\x00\x00\xc0\x07\x00\x00\x00\xd8\x00\x00\x00\x00\x1f\x00\x00\x00\xe0\3B\x08!\x00\x84B\x00\x08\x01\x84\x00B\x08\x01 \x84\x10\x02\x82\x00\x08\x02 \x02\"\x00>\x01\x84\x00~\xd8\xf0\x03~\xc8\xf1\x03";
main(){
for(;i++<25;){
cin>>a;
m[a]=i;
}
cin>>n;
for(;cin>>a;){
B|=1<<m[a];
q=0;
for(i=0;i<15;i++){
//cerr<<L[i]<<" ";
q+=(B&L[i])==L[i];
}
//cerr<<endl;
//cerr<<q<<" "<<L[0]<<" "<<L[1]<<" "<<L[2]<<endl;
cout<<q<<endl;
}
//cerr<<L[0]<<" "<<*((int*)U"À\x07\x00\x00")<<(char)(192)<<endl;
}