java 競技プログラミング メモ
入力例1
20 10 10
3
25 10
20 15
70 70
出力例1
noisy
noisy
silent
public class Main {
public static void main(String args) {
Scanner sc = new Scanner(System.in);
int a,b,R;
int loop = 0;
a = sc.nextInt();
b = sc.nextInt();
R = sc.nextInt();
loop = sc.nextInt();
int x = new int[loop];
for(int i = 0;i < loop;i++) {
x[i] = sc.nextInt();
}
int y = new int[loop];
for(int i = 0;i < loop;i++) {
y[i] = sc.nextInt();
}
int sum = new int[loop];
for (int i = 0;i < loop;i++) {
if(x[i] - a) かける (x[i] - a) +
(y[i] - b) かける (y[i] - b) > (R かける R)) {
System.out.println("silent");
} else {
System.out.println("noisy");
}
}
}
}