Submission #180964
Source Code Expand
#include <stdio.h>
#include <math.h>
#define MAX_GIRLS 1000
int main(void){
int txa, tya, txb, tyb, T, V;
int n;
int x[MAX_GIRLS], y[MAX_GIRLS];
int i;
double distance;
int likeliness = 0;
scanf("%d %d %d %d %d %d", &txa, &tya, &txb, &tyb, &T, &V);
scanf("%d", &n);
for (i = 0; i < n; i++){
scanf("%d %d", &x[i], &y[i]);
}
for (i = 0; i < n; i++) {
distance = sqrt((txb - x[i])*(txb - x[i]) + (tyb - y[i])*(tyb - y[i]))
+ sqrt((x[i] - txa)*(x[i] - txa) + (y[i] - tya)*(y[i] - tya));
if(distance <= T * V){
likeliness = 1;
break;
}
}
printf("%s\n", likeliness ? "YES" : "NO");
return 0;
}
Submission Info
Submission Time
2014-06-07 22:28:03+0900
Task
A - ハンドルネーム
User
midchildan
Language
C (GCC 4.4.7)
Score
0
Code Size
717 Byte
Status
RE
Exec Time
254 ms
Memory
796 KB
Compile Error
./Main.c: In function ‘main’:
./Main.c:13: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result
./Main.c:14: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result
./Main.c:16: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result
Judge Result
Set Name
All
Score / Max Score
0 / 100
Status
Set Name
Test Cases
All
test_aaaaaaaaaa.txt, test_myonmyon.txt, test_nemui.txt, test_onakasuita.txt, test_p.txt
Case Name
Status
Exec Time
Memory
sample_01.txt
RE
242 ms
788 KB
sample_02.txt
RE
254 ms
716 KB
test_aaaaaaaaaa.txt
RE
243 ms
796 KB
test_myonmyon.txt
RE
249 ms
788 KB
test_nemui.txt
RE
245 ms
784 KB
test_onakasuita.txt
RE
250 ms
796 KB
test_p.txt
RE
238 ms
712 KB