QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#595802 | #3131. Tapioka | May_27th# | AC ✓ | 0ms | 3856kb | C++20 | 877b | 2024-09-28 14:29:21 | 2024-09-28 14:29:21 |
Judging History
answer
// #pragma GCC optimize("O3")
// #pragma GCC optimize("unroll-loops")
// #pragma GCC target("avx2,bmi,bmi2,popcnt,lzcnt")
#include<bits/stdc++.h>
using namespace std;
#define i64 long long
#define mp make_pair
#define pb push_back
#define all(x) (x).begin(), (x).end()
const int MAXN = 2e5 + 5;
string S[3];
void Solve(void) {
vector<string> ans;
for (int i = 0; i < 3; i ++) {
cin >> S[i];
if (S[i] != "bubble" && S[i] != "tapioka") {
ans.pb(S[i]);
}
}
if (ans.empty()) {
cout << "nothing" << "\n";
return;
}
for (auto x : ans) cout << x << " "; cout << "\n";
}
signed main() {
ios_base::sync_with_stdio(false); cin.tie(0);
cout << fixed << setprecision(10);
int Tests = 1; // cin >> Tests;
for (int i = 1; i <= Tests; i ++) {
// cout << "Case " << i << ": ";
Solve();
}
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 0ms
memory: 3556kb
input:
bubble tea tapioka
output:
tea
result:
ok single line: 'tea '
Test #2:
score: 0
Accepted
time: 0ms
memory: 3844kb
input:
tapioka bubble tea
output:
tea
result:
ok single line: 'tea '
Test #3:
score: 0
Accepted
time: 0ms
memory: 3556kb
input:
tapioka tapioka tapioka
output:
nothing
result:
ok single line: 'nothing'
Test #4:
score: 0
Accepted
time: 0ms
memory: 3656kb
input:
bubble tea tapiokas
output:
tea tapiokas
result:
ok single line: 'tea tapiokas '
Test #5:
score: 0
Accepted
time: 0ms
memory: 3660kb
input:
bubble tea muffin
output:
tea muffin
result:
ok single line: 'tea muffin '
Test #6:
score: 0
Accepted
time: 0ms
memory: 3624kb
input:
tapioka bubbles bubbles
output:
bubbles bubbles
result:
ok single line: 'bubbles bubbles '
Test #7:
score: 0
Accepted
time: 0ms
memory: 3560kb
input:
tapioka lduugennulniskkkpiavdwdljmggqnqm rsdweqtfgicplfyeelpevuyzwygebnyc
output:
lduugennulniskkkpiavdwdljmggqnqm rsdweqtfgicplfyeelpevuyzwygebnyc
result:
ok single line: 'lduugennulniskkkpiavdwdljmggqn...dweqtfgicplfyeelpevuyzwygebnyc '
Test #8:
score: 0
Accepted
time: 0ms
memory: 3560kb
input:
bubble tea eecjddjcopozwdubqbbysdelmpcjcppq
output:
tea eecjddjcopozwdubqbbysdelmpcjcppq
result:
ok single line: 'tea eecjddjcopozwdubqbbysdelmpcjcppq '
Test #9:
score: 0
Accepted
time: 0ms
memory: 3780kb
input:
tapioka tpmnywgdbfeyncocqkayjkvzhrkaqnrl tapioka
output:
tpmnywgdbfeyncocqkayjkvzhrkaqnrl
result:
ok single line: 'tpmnywgdbfeyncocqkayjkvzhrkaqnrl '
Test #10:
score: 0
Accepted
time: 0ms
memory: 3852kb
input:
tapioka tapiokabubble bubbletea
output:
tapiokabubble bubbletea
result:
ok single line: 'tapiokabubble bubbletea '
Test #11:
score: 0
Accepted
time: 0ms
memory: 3560kb
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: 3504kb
input:
tapioka bubble tapioka
output:
nothing
result:
ok single line: 'nothing'
Test #14:
score: 0
Accepted
time: 0ms
memory: 3856kb
input:
tapioka thisisnotbubble thisisalsonottapioka
output:
thisisnotbubble thisisalsonottapioka
result:
ok single line: 'thisisnotbubble thisisalsonottapioka '
Test #15:
score: 0
Accepted
time: 0ms
memory: 3560kb
input:
tapioka bubbletapioka tapiokabubble
output:
bubbletapioka tapiokabubble
result:
ok single line: 'bubbletapioka tapiokabubble '