結果
| 問題 | No.3818 TSG BINGO (C++) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-11-23 05:33:59 |
| 言語 | C++17 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 1 ms / 2,000 ms |
| + 964µs | |
| コード長 | 285 bytes |
| 記録 | |
| コンパイル時間 | 374 ms |
| コンパイル使用メモリ | 84,336 KB |
| 実行使用メモリ | 9,840 KB |
| スコア | 430 |
| 最終ジャッジ日時 | 2026-11-23 05:34:03 |
| 合計ジャッジ時間 | 3,083 ms |
|
ジャッジサーバーID (参考情報) |
judge6_0 / judge1_0 |
| 純コード判定しない問題か言語 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 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;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|_);std::cout<<o<<"\n";}}
| ^~~~
ソースコード
#import<iostream>
int x[99],m,c,z,o,i;main(){for(;i++<25;)std::cin>>z,x[z]=i;for(std::cin>>i;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|_);std::cout<<o<<"\n";}}