Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.*;
- import java.io.*;
- import java.math.*;
- /**
- * Auto-generated code below aims at helping you parse
- * the standard input according to the problem statement.
- **/
- class Solution {
- public static void main(String args[]) {
- Scanner in = new Scanner(System.in);
- String D = in.nextLine();
- for(String chunk : D.split(" "))
- {
- int nbr = Integer.parseInt(chunk.replaceAll("[^0-9]",""));
- for(int i = 0; i < nbr; i++)
- System.out.print(chunk.replaceAll("[0-9]",""));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement