QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#188545#5483. Class Field TripGamal74#WA 1ms3496kbC++201.1kb2023-09-25 23:05:302023-09-25 23:05:31

Judging History

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

  • [2023-09-25 23:05:31]
  • 评测
  • 测评结果:WA
  • 用时:1ms
  • 内存:3496kb
  • [2023-09-25 23:05:30]
  • 提交

answer

#include <bits/stdc++.h>

using namespace std;

typedef long long ll;
typedef long double ld;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
typedef vector<int> vi;

#define fi first
#define se second
#define pp push_back
#define all(x) (x).begin(), (x).end()
#define Ones(n) __builtin_popcount(n)
#define endl '\n'
#define mem(arrr, xx) memset(arrr,xx,sizeof arrr)
//#define int long long
#define debug(x) cout << (#x) << " = " << x << endl

void Gamal() {
    ios_base::sync_with_stdio(false);
    cin.tie(nullptr);
    cout.tie(nullptr);
#ifdef Clion
    freopen("input.txt", "r", stdin), freopen("output.txt", "w", stdout);
#endif
}

int dx[] = {+0, +0, -1, +1, +1, +1, -1, -1};
int dy[] = {-1, +1, +0, +0, +1, -1, +1, -1};

const double EPS = 1e-9;
const ll OO = 0X3F3F3F3F3F3F3F3F;
const int N = 2e5 + 5, INF = INT_MAX, MOD = 1e9 + 7, LOG = 20;


void solve() {
    string a,b;cin >> a >> b;
    a += b;
    sort(all(a));
    if(a == "aachijjjkllmnoy")cout << -1;
    cout << a;
}


signed main() {
    Gamal();
    int t = 1;
//    cin >> t;
    while (t--) {
        solve();
    }
}

详细

Test #1:

score: 0
Wrong Answer
time: 1ms
memory: 3496kb

input:

ahjmnoy
acijjkll

output:

-1aachijjjkllmnoy

result:

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