QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#741956 | #3131. Tapioka | ucup-team5226# | AC ✓ | 0ms | 3832kb | C++20 | 993b | 2024-11-13 15:32:15 | 2024-11-13 15:32:19 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
#define ov4(a, b, c, d, name, ...) name
#define rep3(i, a, b, c) for (ll i = (a); i < (b); i += (c))
#define rep2(i, a, b) rep3(i, a, b, 1)
#define rep1(i, n) rep2(i, 0, n)
#define rep0(n) rep1(aaaaa, n)
#define rep(...) ov4(__VA_ARGS__, rep3, rep2, rep1, rep0)(__VA_ARGS__)
const ll INF = LLONG_MAX / 4;
template <class T>
using vc = vector<T>;
template <class T>
using vvc = vc<vector<T>>;
void solve() {
vc<string> s(3);
rep(i, 3) cin >> s[i];
vc<string> tmp;
rep(i, 3) if (s[i] != "tapioka" and s[i] != "bubble") tmp.push_back(s[i]);
s = tmp;
if (s.empty())
cout << "nothing" << endl;
else {
for (auto x : s) cout << x << " ";
cout << endl;
}
}
int main() {
cin.tie(0)->sync_with_stdio(0);
cout << fixed << setprecision(20);
ll t = 1;
// cin >> t;
for (int i = 1; i <= t; i++) solve();
}
详细
Test #1:
score: 100
Accepted
time: 0ms
memory: 3596kb
input:
bubble tea tapioka
output:
tea
result:
ok single line: 'tea '
Test #2:
score: 0
Accepted
time: 0ms
memory: 3532kb
input:
tapioka bubble tea
output:
tea
result:
ok single line: 'tea '
Test #3:
score: 0
Accepted
time: 0ms
memory: 3552kb
input:
tapioka tapioka tapioka
output:
nothing
result:
ok single line: 'nothing'
Test #4:
score: 0
Accepted
time: 0ms
memory: 3816kb
input:
bubble tea tapiokas
output:
tea tapiokas
result:
ok single line: 'tea tapiokas '
Test #5:
score: 0
Accepted
time: 0ms
memory: 3548kb
input:
bubble tea muffin
output:
tea muffin
result:
ok single line: 'tea muffin '
Test #6:
score: 0
Accepted
time: 0ms
memory: 3596kb
input:
tapioka bubbles bubbles
output:
bubbles bubbles
result:
ok single line: 'bubbles bubbles '
Test #7:
score: 0
Accepted
time: 0ms
memory: 3612kb
input:
tapioka lduugennulniskkkpiavdwdljmggqnqm rsdweqtfgicplfyeelpevuyzwygebnyc
output:
lduugennulniskkkpiavdwdljmggqnqm rsdweqtfgicplfyeelpevuyzwygebnyc
result:
ok single line: 'lduugennulniskkkpiavdwdljmggqn...dweqtfgicplfyeelpevuyzwygebnyc '
Test #8:
score: 0
Accepted
time: 0ms
memory: 3616kb
input:
bubble tea eecjddjcopozwdubqbbysdelmpcjcppq
output:
tea eecjddjcopozwdubqbbysdelmpcjcppq
result:
ok single line: 'tea eecjddjcopozwdubqbbysdelmpcjcppq '
Test #9:
score: 0
Accepted
time: 0ms
memory: 3552kb
input:
tapioka tpmnywgdbfeyncocqkayjkvzhrkaqnrl tapioka
output:
tpmnywgdbfeyncocqkayjkvzhrkaqnrl
result:
ok single line: 'tpmnywgdbfeyncocqkayjkvzhrkaqnrl '
Test #10:
score: 0
Accepted
time: 0ms
memory: 3596kb
input:
tapioka tapiokabubble bubbletea
output:
tapiokabubble bubbletea
result:
ok single line: 'tapiokabubble bubbletea '
Test #11:
score: 0
Accepted
time: 0ms
memory: 3832kb
input:
tapioka pikataro tarokipa
output:
pikataro tarokipa
result:
ok single line: 'pikataro tarokipa '
Test #12:
score: 0
Accepted
time: 0ms
memory: 3616kb
input:
bubble tea tea
output:
tea tea
result:
ok single line: 'tea tea '
Test #13:
score: 0
Accepted
time: 0ms
memory: 3616kb
input:
tapioka bubble tapioka
output:
nothing
result:
ok single line: 'nothing'
Test #14:
score: 0
Accepted
time: 0ms
memory: 3600kb
input:
tapioka thisisnotbubble thisisalsonottapioka
output:
thisisnotbubble thisisalsonottapioka
result:
ok single line: 'thisisnotbubble thisisalsonottapioka '
Test #15:
score: 0
Accepted
time: 0ms
memory: 3592kb
input:
tapioka bubbletapioka tapiokabubble
output:
bubbletapioka tapiokabubble
result:
ok single line: 'bubbletapioka tapiokabubble '