Submission #3246239
Source Code Expand
import java.util.Scanner; class Main{ public static void main(String[] aegs) { Scanner sc=new Scanner(System.in); int txa=sc.nextInt(); int tya=sc.nextInt(); int txb=sc.nextInt(); int tyb=sc.nextInt(); int T=sc.nextInt(); int V=sc.nextInt(); // V^2 のほうが使い勝手良さそう int Vc=V*V; int kanojo=sc.nextInt(); long[] s_smi=new long[kanojo]; for(int i=0; i<kanojo; i++) { int kx=sc.nextInt(); int ky=sc.nextInt(); s_smi[i]=(txa-kx)*(txa-kx)+(tya-ky)*(tya-ky)+(txb-kx)*(txb-kx)+(tyb-ky)*(tyb-ky); } int min=0; long max=V*T*V*T; for(int i=0; i<kanojo; i++) { if(s_smi[i]<=max) { System.out.println("YES"); System.exit(0); } } System.out.println("NO"); } }
Submission Info
Submission Time | |
---|---|
Task | C - 浮気調査 |
User | Digaus |
Language | Java8 (OpenJDK 1.8.0) |
Score | 0 |
Code Size | 765 Byte |
Status | WA |
Exec Time | 141 ms |
Memory | 27116 KB |
Judge Result
Set Name | All | ||||
---|---|---|---|---|---|
Score / Max Score | 0 / 100 | ||||
Status |
|
Set Name | Test Cases |
---|---|
All | sample_01.txt, sample_02.txt, sample_03.txt, sample_04.txt, test_01.txt, test_02.txt, test_03.txt, test_04.txt, test_05.txt, test_06.txt, test_07.txt, test_08.txt, test_09.txt, test_10.txt, test_11.txt, test_12.txt, test_13.txt, test_14.txt, test_15.txt, test_16.txt, test_17.txt, test_18.txt, test_19.txt, test_20.txt, test_21.txt, test_22.txt, test_23.txt, test_24.txt, test_25.txt, test_26.txt, test_27.txt, test_28.txt, test_29.txt, test_30.txt, test_31.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
sample_01.txt | WA | 96 ms | 21460 KB |
sample_02.txt | AC | 93 ms | 19028 KB |
sample_03.txt | AC | 91 ms | 21204 KB |
sample_04.txt | AC | 94 ms | 21204 KB |
test_01.txt | WA | 137 ms | 24916 KB |
test_02.txt | AC | 139 ms | 25448 KB |
test_03.txt | WA | 127 ms | 23380 KB |
test_04.txt | AC | 115 ms | 22100 KB |
test_05.txt | WA | 113 ms | 20944 KB |
test_06.txt | AC | 93 ms | 20692 KB |
test_07.txt | WA | 136 ms | 23764 KB |
test_08.txt | AC | 136 ms | 23596 KB |
test_09.txt | WA | 124 ms | 21844 KB |
test_10.txt | AC | 137 ms | 24360 KB |
test_11.txt | WA | 106 ms | 21204 KB |
test_12.txt | AC | 91 ms | 21972 KB |
test_13.txt | WA | 137 ms | 20436 KB |
test_14.txt | AC | 137 ms | 26964 KB |
test_15.txt | WA | 99 ms | 21076 KB |
test_16.txt | AC | 117 ms | 23636 KB |
test_17.txt | WA | 105 ms | 22100 KB |
test_18.txt | AC | 93 ms | 19284 KB |
test_19.txt | WA | 136 ms | 23636 KB |
test_20.txt | AC | 138 ms | 27116 KB |
test_21.txt | WA | 140 ms | 24708 KB |
test_22.txt | AC | 97 ms | 19028 KB |
test_23.txt | AC | 106 ms | 19028 KB |
test_24.txt | AC | 95 ms | 21588 KB |
test_25.txt | WA | 136 ms | 25644 KB |
test_26.txt | AC | 141 ms | 24804 KB |
test_27.txt | WA | 124 ms | 22100 KB |
test_28.txt | AC | 132 ms | 21460 KB |
test_29.txt | WA | 113 ms | 20692 KB |
test_30.txt | AC | 93 ms | 18644 KB |
test_31.txt | AC | 94 ms | 21204 KB |