[softeer] Yeah, but How?
in Algorithm on Algorithm
import java.io.*;
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String T = sc.next();
T = T.replace(")(",")+(");
T = T.replace("())","()+1)");
T = T.replace("(()","((1+1)");
T = T.replace("()","(1)");
System.out.println(T);
}
}