Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.io.*;
- public class Minumum {
- public static void main(String args[]) {
- int i = 0;
- int dans = 1;
- float tans = 0;
- float num;
- String str;
- BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
- try {
- while ((str = br.readLine()) != null) {
- num = Float.parseFloat(str);
- i++;
- if (tans > dans) {
- tans = num;
- dans = i;
- }
- }
- }
- catch (Exception e) {
- }
- System.out.println(dans + "日: " + tans);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement