eolymp
bolt
Try our new interface for solving problems
Problems

Delete digits

published at 2/6/24, 4:56:32 pm

salam kimse hell ata biler

published at 2/28/24, 2:58:37 pm

include <bits/stdc++.h>

using namespace std;

int main() { ios::syncwithstdio(0); cin.tie(0); string a; cin >> a; for (int i = 0; i < a.size(); i++) { if (a[i] == '3' || a[i] == '9') { a.erase(i, 1); i--; } } cout << a; return 0; }