QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#61050#3673. Generalized German Quotationabdelrahman001#WA 3ms3340kbC++20517b2022-11-09 17:38:152022-11-09 17:38:17

Judging History

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

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2022-11-09 17:38:17]
  • 评测
  • 测评结果:WA
  • 用时:3ms
  • 内存:3340kb
  • [2022-11-09 17:38:15]
  • 提交

answer

#pragma GCC optimize ("O3")
#pragma GCC optimize ("unroll-loops")
//#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
#include <bits/stdc++.h>
typedef long long ll;
typedef long double ld;
using namespace std;
const int N = 3e2 + 5;
string s;
int main() {
    ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
    cin >> s;
    if(s.size() % 4)
		return cout << "Keine Loesung", 0;
	int sz = s.size() / 4;
	cout << string(sz, '[') + string(sz, ']');
    return 0;
}


Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 0
Wrong Answer
time: 3ms
memory: 3340kb

input:

<<>><<<<>>>>

output:

[[[]]]

result:

wrong answer `]' closes quote of the same type `<'