Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.io.BufferedReader;
- import java.io.InputStreamReader;
- public class Bus {
- public static void main(String[] args) throws Exception {
- int i,j,k;
- int minsuma=0,maxsuma=0;
- BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
- int N = Integer.parseInt(br.readLine());
- int M = Integer.parseInt(br.readLine());
- br.close();
- if(M==0)
- maxsuma+=N*100;
- else
- maxsuma+=N*100+(M-1)*100;
- if(N>M)
- minsuma+=N*100;
- else
- minsuma+=N*100+(M-N)*100;
- System.out.println(minsuma);
- System.out.println(maxsuma);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement