Submission #73674539
Source Code Expand
#include<bits/stdc++.h>
// #include<atcoder/all>
using namespace std;
using ll = long long;
#define rep(i, n) for(int i = 0; i < (n); ++i)
template<typename T> bool chmin(T& a, T b){if(a > b){a = b; return true;} return false;}
template<typename T> bool chmax(T& a, T b){if(a < b){a = b; return true;} return false;}
const long long INF = 1LL << 60;
using Graph = vector<vector<int>>;
int gcd(int a, int b){
if(b == 0) return a;
else return gcd(b, a%b);
}
struct Compare {
bool operator()(const pair<ll, int>& a, const pair<ll, int>& b) {
return a.first > b.first;
}
};
int main(){
ios::sync_with_stdio(false);
cin.tie(nullptr);
string s; cin >> s;
map<char,int> cnt;
int mcnt = 0;
for(auto x:s){
cnt[x]++;
chmax(mcnt, cnt[x]);
}
for(auto x:s){
if(cnt[x] < mcnt) cout << x;
}
cout << endl;
}
Submission Info
| Submission Time | |
|---|---|
| Task | B - mpp |
| User | motomoto0001 |
| Language | C++23 (GCC 15.2.0) |
| Score | 200 |
| Code Size | 918 Byte |
| Status | AC |
| Exec Time | 2 ms |
| Memory | 3620 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 | 2 ms | 3588 KiB |
| 00_sample_01.txt | AC | 1 ms | 3584 KiB |
| 00_sample_02.txt | AC | 1 ms | 3476 KiB |
| 01_test_00.txt | AC | 1 ms | 3528 KiB |
| 01_test_01.txt | AC | 1 ms | 3440 KiB |
| 01_test_02.txt | AC | 1 ms | 3528 KiB |
| 01_test_03.txt | AC | 1 ms | 3520 KiB |
| 01_test_04.txt | AC | 1 ms | 3552 KiB |
| 01_test_05.txt | AC | 1 ms | 3616 KiB |
| 01_test_06.txt | AC | 1 ms | 3520 KiB |
| 01_test_07.txt | AC | 1 ms | 3468 KiB |
| 01_test_08.txt | AC | 1 ms | 3616 KiB |
| 01_test_09.txt | AC | 1 ms | 3540 KiB |
| 01_test_10.txt | AC | 1 ms | 3584 KiB |
| 01_test_11.txt | AC | 1 ms | 3476 KiB |
| 01_test_12.txt | AC | 1 ms | 3476 KiB |
| 01_test_13.txt | AC | 1 ms | 3620 KiB |
| 01_test_14.txt | AC | 1 ms | 3616 KiB |
| 01_test_15.txt | AC | 1 ms | 3468 KiB |
| 01_test_16.txt | AC | 1 ms | 3468 KiB |