Open hwangnk1004 opened 4 years ago
문제 http://59.23.150.58/30stair/pmin/pmin.php?pname=pmin
import java.util.Scanner;
public class Main { public static void main(String args[]) {
Scanner scanner = new Scanner(System.in); int n = scanner.nextInt(); int[] arr = new int[n]; for(int i=0; i<arr.length; i++ ) { arr[i] =scanner.nextInt(); } int sum = 100000000; for(int i=0; i<arr.length ; i++) { sum = Math.min(sum,arr[i]); } for(int i=0; i<arr.length; i++) { if (arr[i] == sum) { System.out.print(i+1+" "); } } }
}
문제 http://59.23.150.58/30stair/pmin/pmin.php?pname=pmin
답
import java.util.Scanner;
public class Main { public static void main(String args[]) {
}