eolymp
bolt
Try our new interface for solving problems
Məsələlər

Rəqəmləri silməli

dərc olunub 06.02.24 16:56:32

salam kimse hell ata biler

dərc olunub 28.02.24 14:58:37

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; }