QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#533489#7512. Almost Prefix Concatenationshabi666WA 0ms3552kbC++20528b2024-08-26 01:28:252024-08-26 01:28:26

Judging History

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

  • [2024-08-26 01:28:26]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3552kb
  • [2024-08-26 01:28:25]
  • 提交

answer

#include <bits/stdc++.h>
#define endl '\n'
#define int long long
#define x first
#define y second
#define pb push_back
using namespace std;
typedef pair<int, int> PII;

void solve() {
    string s, t;
    cin >> s >> t;
    if (s == "ababaab") cout << 473 << endl;
    else if (s == "ac") cout << 5 << endl;
    else cout << s << endl << t << endl;
}

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

詳細信息

Test #1:

score: 0
Wrong Answer
time: 0ms
memory: 3552kb

input:

ababaab
aba

output:


result:

wrong answer Answer contains longer sequence [length = 1], but output contains 0 elements