QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#493272#9107. Zayin and CountSocialPandaWA 22ms3616kbC++231.0kb2024-07-26 23:46:452024-07-26 23:46:45

Judging History

你现在查看的是最新测评结果

  • [2024-07-26 23:46:45]
  • 评测
  • 测评结果:WA
  • 用时:22ms
  • 内存:3616kb
  • [2024-07-26 23:46:45]
  • 提交

answer

#pragma GCC optimize("O3")
#pragma GCC optimize("unroll-loops")

#include <bits/stdc++.h>
//#define int long long
//#define LL long long
#define double long double
//#define lf Lf
#define fi first
#define se second
#define pb push_back
#define eb emplace_back
#define endl "\n"
#define PII pair<int,int>
#define Gheap priority_queue<int,vector<int>,greater<int>>
#define Lheap priority_queue<int>
#define MAXN 0x3f3f3f3f
#define MINN -0x3f3f3f3f
using namespace std;
//const int N=1e6+100,M=2*N;
//int e[N],w[M],h[M],ne[M],idx;

void solve()
{
	map<char,int> mp;
	string na;
    string a,b;
    int idx=0;
    for(int i=0;i<10;i++)
    {
    	int num;cin>>num;
    	if(num) a+=char('0'+i);
    }
    for(int i=0;i<10;i++)
    {
    	int num;cin>>num;
    	if(num) mp[a[idx++]]=i;
    }
    cin>>na;

    for(auto z:na) cout<<mp[z];
    cout<<endl;

}

int main()
{
    std::ios::sync_with_stdio(false);
    cin.tie(0);
    cout.tie(0);
    int tt=1;
    cin >> tt;
    while(tt--) solve();
}

詳細信息

Test #1:

score: 0
Wrong Answer
time: 22ms
memory: 3616kb

input:

10000
1 0 0 0 1 1 0 0 0 1
0 0 1 0 1 1 1 1 0 0
950595954440050004054505054050
1 0 0 0 1 1 1 1 0 0
1 1 1 0 1 0 0 0 1 1
45467007076660767550460064
1 1 1 1 0 0 0 1 0 0
1 1 0 1 1 0 1 0 0 1
23373171320213300170200722
0 0 0 0 1 1 1 0 1 0
0 0 1 0 0 1 0 1 1 1
558565664666565565558468668484
1 1 0 0 1 0 1 0 1 ...

output:

652565654442252224254525254252
12148008084440848220140041
34464161430314400160300633
558575772777575575558278778282
87085070877522288782520827
610010606760761011770006661017
056088808550800560658558588656
506555110066656015055661066615
50708000805077005588000780
201926012690310900962
000086805668060...

result:

wrong answer 1st lines differ - expected: '52755244567262766742575722', found: '652565654442252224254525254252'