Problem
Input format
The program reads from standard input two non-negative integers, `n` and `d`, separated by a space. - `0 <= n <= 1000000000` - `0 <= d <= 9` - if no digits remain after removal, print `0`
Output format
The program prints to standard output a single non-negative integer: the value obtained after removing digit `d`, followed by a newline.
Example
1223344 2
13344
Stuck?
Use the Get Hint button in the action bar to reveal a guided hint.
💬 Discussion
Loading...No comments yet. Be the first to start the discussion!
Sample cases (from the problem)
Sample Case 1
1223344 2
13344
Solve it your way first
Community solutions unlock after you submit a passing solution. Don't peek.
Ready to solve this challenge?
Create a free account to write code, submit solutions, and track your progress.