Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.io.BufferedReader;
- import java.io.InputStreamReader;
- import java.lang.Math;
- public class Bus {
- public static void main(String[] args) throws Exception {
- BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
- int N = Integer.parseInt(br.readLine());
- int M = Integer.parseInt(br.readLine());
- br.close();
- int maksimum =0;
- if(M>0)
- maksimum = (M-1) * 100 + N*100;
- else
- maksimum = N*100;
- int minimum = 0;
- if(N>M) {
- minimum = N*100;
- } else minimum = M* 100;
- System.out.println(minimum);
- System.out.println(maksimum);
- }
- }//nemam pojma so naprajv nemam pojma so e voa nemam pojma zs e tocno
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement