Submission #73699636
Source Code Expand
#include <bits/stdc++.h>
using namespace std;
// --- Type Definitions ---
using ll = long long;
using db = long double; // Crucial for those "Lantern" precision problems
using str = string;
// --- Vectors & Pairs ---
using pi = pair<int,int>;
using pl = pair<ll,ll>;
using vi = vector<int>;
using vl = vector<ll>;
// --- Shortcuts ---
#define mp make_pair
#define f first
#define s second
#define pb push_back
#define eb emplace_back // Slightly faster than pb
#define all(x) begin(x), end(x)
#define sor(x) sort(all(x))
#define rsz resize
#define sz(x) int((x).size())
// --- Loops ---
#define FOR(i,a,b) for (int i = (a); i < (b); ++i)
#define F0R(i,a) FOR(i,0,a)
#define ROF(i,a,b) for (int i = (b)-1; i >= (a); --i)
#define R0F(i,a) ROF(i,0,a)
#define each(a,x) for (auto& a: x)
// --- Input/Output Optimization ---
void setIO(string name = "") {
cin.tie(0)->sync_with_stdio(0); // Fast I/O
if (sz(name)) {
freopen((name + ".in").c_str(), "r", stdin);
freopen((name + ".out").c_str(), "w", stdout);
}
// Auto-fix precision for doubles (stops 2.5 becoming 2.5e+00)
cout << fixed << setprecision(15);
}
// --- Constant ---
const ll MOD = 1e9+7; // For those "modulo 10^9+7" problems
const ll INF = 1e18; // Huge number for infinity
int main() {
setIO();
// int t; cin >> t; while(t--) {}
vector<int> n(26);
string s;
cin>> s;
each(a,s){
n[a-'a']++;
}
vector<char> st;
int maxi = *max_element(all(n));
str res = "";
each(a,s){
if(n[a-'a']!=maxi){res+=a;}
}
cout<<res;
}
Submission Info
| Submission Time | |
|---|---|
| Task | B - mpp |
| User | wrapper |
| Language | C++23 (GCC 15.2.0) |
| Score | 200 |
| Code Size | 1702 Byte |
| Status | AC |
| Exec Time | 1 ms |
| Memory | 3632 KiB |
Judge Result
| Set Name | Sample | All | ||||
|---|---|---|---|---|---|---|
| Score / Max Score | 0 / 0 | 200 / 200 | ||||
| Status |
|
|
| Set Name | Test Cases |
|---|---|
| Sample | 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt |
| All | 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt, 01_test_00.txt, 01_test_01.txt, 01_test_02.txt, 01_test_03.txt, 01_test_04.txt, 01_test_05.txt, 01_test_06.txt, 01_test_07.txt, 01_test_08.txt, 01_test_09.txt, 01_test_10.txt, 01_test_11.txt, 01_test_12.txt, 01_test_13.txt, 01_test_14.txt, 01_test_15.txt, 01_test_16.txt |
| Case Name | Status | Exec Time | Memory |
|---|---|---|---|
| 00_sample_00.txt | AC | 1 ms | 3416 KiB |
| 00_sample_01.txt | AC | 1 ms | 3628 KiB |
| 00_sample_02.txt | AC | 1 ms | 3600 KiB |
| 01_test_00.txt | AC | 1 ms | 3552 KiB |
| 01_test_01.txt | AC | 1 ms | 3448 KiB |
| 01_test_02.txt | AC | 1 ms | 3600 KiB |
| 01_test_03.txt | AC | 1 ms | 3628 KiB |
| 01_test_04.txt | AC | 1 ms | 3624 KiB |
| 01_test_05.txt | AC | 1 ms | 3608 KiB |
| 01_test_06.txt | AC | 1 ms | 3412 KiB |
| 01_test_07.txt | AC | 1 ms | 3412 KiB |
| 01_test_08.txt | AC | 1 ms | 3556 KiB |
| 01_test_09.txt | AC | 1 ms | 3536 KiB |
| 01_test_10.txt | AC | 1 ms | 3620 KiB |
| 01_test_11.txt | AC | 1 ms | 3628 KiB |
| 01_test_12.txt | AC | 1 ms | 3492 KiB |
| 01_test_13.txt | AC | 1 ms | 3600 KiB |
| 01_test_14.txt | AC | 1 ms | 3600 KiB |
| 01_test_15.txt | AC | 1 ms | 3628 KiB |
| 01_test_16.txt | AC | 1 ms | 3632 KiB |