結果

問題 No.2602 Real Collider
ユーザー 👑 p-adicp-adic
提出日時 2024-01-13 10:28:36
言語 cLay
(20240104-1)
結果
WA  
実行時間 -
コード長 418 bytes
コンパイル時間 2,276 ms
コンパイル使用メモリ 173,772 KB
実行使用メモリ 6,676 KB
最終ジャッジ日時 2024-01-13 10:28:44
合計ジャッジ時間 6,300 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
6,676 KB
testcase_01 AC 2 ms
6,676 KB
testcase_02 AC 1 ms
6,676 KB
testcase_03 AC 2 ms
6,676 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 1 ms
6,676 KB
testcase_08 AC 2 ms
6,676 KB
testcase_09 AC 2 ms
6,676 KB
testcase_10 AC 8 ms
6,676 KB
testcase_11 WA -
testcase_12 AC 4 ms
6,676 KB
testcase_13 AC 3 ms
6,676 KB
testcase_14 AC 5 ms
6,676 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 AC 3 ms
6,676 KB
testcase_19 AC 4 ms
6,676 KB
testcase_20 WA -
testcase_21 AC 3 ms
6,676 KB
testcase_22 AC 4 ms
6,676 KB
testcase_23 AC 3 ms
6,676 KB
testcase_24 AC 4 ms
6,676 KB
testcase_25 AC 4 ms
6,676 KB
testcase_26 WA -
testcase_27 AC 5 ms
6,676 KB
testcase_28 WA -
testcase_29 AC 4 ms
6,676 KB
testcase_30 AC 5 ms
6,676 KB
testcase_31 WA -
testcase_32 WA -
testcase_33 WA -
testcase_34 WA -
testcase_35 WA -
testcase_36 WA -
testcase_37 WA -
testcase_38 WA -
testcase_39 WA -
testcase_40 WA -
testcase_41 WA -
testcase_42 WA -
testcase_43 WA -
testcase_44 WA -
testcase_45 WA -
testcase_46 WA -
testcase_47 WA -
testcase_48 WA -
testcase_49 WA -
testcase_50 WA -
testcase_51 WA -
testcase_52 WA -
testcase_53 WA -
testcase_54 WA -
testcase_55 WA -
testcase_56 WA -
testcase_57 WA -
testcase_58 WA -
testcase_59 WA -
testcase_60 WA -
testcase_61 WA -
testcase_62 WA -
testcase_63 WA -
testcase_64 WA -
testcase_65 WA -
testcase_66 WA -
testcase_67 WA -
testcase_68 WA -
testcase_69 WA -
testcase_70 WA -
testcase_71 WA -
testcase_72 WA -
testcase_73 WA -
testcase_74 WA -
testcase_75 WA -
testcase_76 WA -
testcase_77 WA -
testcase_78 WA -
testcase_79 WA -
testcase_80 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

ll@Q,@a,@b,@c,@d,@e,@f,X[]={a,c,e,a,c},Y[]={b,d,f,b,d},u,v=2,s,t=1,r;auto A=[&](ll x,ll y){return x*x+y*y;};auto D=[&](ll x,ll y){return A(s-x*t*v,(u-y*v)*t);};ll x=c-a,y=e-a,z=b-d,w=b-f,Z=A(c,d)-A(a,b),W=A(e,f)-A(a,b),B=1;rep(i,3){u=Y[i]+Y[i+1],s=X[i]+X[i+1],r=D(X[i],Y[i]);if(D(X[i+2],Y[i+2])<=r)B=0,break;}if(B)u=x*W-y*Z,v=2(y*z-x*w),s=x?v*Z+2z*u:v*W+2w*u,t=x?2x:2y,r=D(a,b);rep(Q){ll@x,@y;Wt(D(x,y)>r?"No":"Yes");}
0