QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#61050 | #3673. Generalized German Quotation | abdelrahman001# | WA | 3ms | 3340kb | C++20 | 517b | 2022-11-09 17:38:15 | 2022-11-09 17:38:17 |
Judging History
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;
}
详细
Test #1:
score: 0
Wrong Answer
time: 3ms
memory: 3340kb
input:
<<>><<<<>>>>
output:
[[[]]]
result:
wrong answer `]' closes quote of the same type `<'