Submission #963972

#TimeUsernameProblemLanguageResultExecution timeMemory
963972becaidoMensza (COI22_mensza)C++17
11 / 100
5018 ms455508 KiB
#pragma GCC optimize("O3,unroll-loops") #pragma GCC target("avx,popcnt,sse4,abm") #include <bits/stdc++.h> using namespace std; #ifdef WAIMAI #define debug(HEHE...) cout << "[" << #HEHE << "] : ", dout(HEHE) void dout() {cout << '\n';} template<typename T, typename...U> void dout(T t, U...u) {cout << t << (sizeof...(u) ? ", " : ""), dout(u...);} #else #define debug(...) 7122 #endif #define ll long long #define Waimai ios::sync_with_stdio(false), cin.tie(0) #define FOR(x,a,b) for (int x = a, I = b; x <= I; x++) #define pb emplace_back #define F first #define S second int len, q; void solve() { cin >> len >> q; while (q--) { string s; cin >> s; if (s[0] == 'a' || s[0] == 'b') { int n, x; cin >> x; n = (s[0] == 'a' ? 0 : 100) + x; cout << n << ' '; FOR (i, 1, n) cout << x << " \n"[i == n]; } else { int n, a, b; cin >> n >> a >> b; b -= 100; cout << (a > b ? 'A' : 'B') << '\n'; } } } int main() { Waimai; solve(); }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...