結果
問題 | No.5008 [Cherry Alpha] Discrete Pendulum with Air Resistance |
ユーザー | titia |
提出日時 | 2022-10-15 01:06:39 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 1,988 ms / 2,000 ms |
コード長 | 1,066 bytes |
コンパイル時間 | 249 ms |
実行使用メモリ | 85,480 KB |
スコア | 318,680,103,667,950 |
最終ジャッジ日時 | 2022-10-15 01:08:29 |
合計ジャッジ時間 | 109,443 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge10 |
純コード判定しない問題か言語 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 1,975 ms
84,648 KB |
testcase_01 | AC | 1,975 ms
84,624 KB |
testcase_02 | AC | 1,975 ms
85,152 KB |
testcase_03 | AC | 1,973 ms
84,316 KB |
testcase_04 | AC | 1,973 ms
84,916 KB |
testcase_05 | AC | 1,974 ms
84,676 KB |
testcase_06 | AC | 1,974 ms
84,584 KB |
testcase_07 | AC | 1,974 ms
84,912 KB |
testcase_08 | AC | 1,976 ms
84,716 KB |
testcase_09 | AC | 1,975 ms
84,180 KB |
testcase_10 | AC | 1,975 ms
85,196 KB |
testcase_11 | AC | 1,974 ms
84,964 KB |
testcase_12 | AC | 1,974 ms
84,884 KB |
testcase_13 | AC | 1,975 ms
85,196 KB |
testcase_14 | AC | 1,973 ms
84,672 KB |
testcase_15 | AC | 1,974 ms
85,008 KB |
testcase_16 | AC | 1,974 ms
84,492 KB |
testcase_17 | AC | 1,974 ms
85,176 KB |
testcase_18 | AC | 1,975 ms
84,756 KB |
testcase_19 | AC | 1,975 ms
85,480 KB |
testcase_20 | AC | 1,974 ms
84,644 KB |
testcase_21 | AC | 1,972 ms
84,340 KB |
testcase_22 | AC | 1,974 ms
84,500 KB |
testcase_23 | AC | 1,978 ms
85,360 KB |
testcase_24 | AC | 1,975 ms
84,924 KB |
testcase_25 | AC | 1,971 ms
84,452 KB |
testcase_26 | AC | 1,974 ms
85,088 KB |
testcase_27 | AC | 1,975 ms
84,952 KB |
testcase_28 | AC | 1,975 ms
84,880 KB |
testcase_29 | AC | 1,975 ms
84,388 KB |
testcase_30 | AC | 1,975 ms
84,924 KB |
testcase_31 | AC | 1,973 ms
84,448 KB |
testcase_32 | AC | 1,972 ms
84,460 KB |
testcase_33 | AC | 1,973 ms
84,564 KB |
testcase_34 | AC | 1,975 ms
85,208 KB |
testcase_35 | AC | 1,975 ms
85,308 KB |
testcase_36 | AC | 1,976 ms
84,876 KB |
testcase_37 | AC | 1,974 ms
84,484 KB |
testcase_38 | AC | 1,973 ms
85,276 KB |
testcase_39 | AC | 1,971 ms
84,796 KB |
testcase_40 | AC | 1,975 ms
84,704 KB |
testcase_41 | AC | 1,974 ms
84,820 KB |
testcase_42 | AC | 1,974 ms
85,088 KB |
testcase_43 | AC | 1,973 ms
85,248 KB |
testcase_44 | AC | 1,973 ms
85,316 KB |
testcase_45 | AC | 1,974 ms
84,632 KB |
testcase_46 | AC | 1,972 ms
84,652 KB |
testcase_47 | AC | 1,984 ms
85,192 KB |
testcase_48 | AC | 1,988 ms
84,912 KB |
testcase_49 | AC | 1,975 ms
84,640 KB |
ソースコード
import sys input = sys.stdin.readline import time time0=time.time() N,K=map(int,input().split()) T=list(map(int,input().split())) U=list(map(int,input().split())) def location(b,t): u=t%(4*b) if u<=b: return u u-=b if u<=b<=3*b: return b-u u-=2*b return -b+u def score_t(A): sc=0 for i in range(N): for j in range(i+1,N): sc+=abs(A[i]-A[j])/(B[i]+B[j]) return round(20000000*sc/50/49) def score_u(A): MAX=0 for i in range(N): for j in range(i+1,N): MAX=max(MAX,A[i]-A[j]) return 10000000/((MAX/20+1)**(1/2)) from random import randint maxscore=0 LA=[] while time.time()-time0<1.9: B=[randint(1,500) for i in range(N)] sct=0 scu=0 for t in T: A=[location(B[i],t) for i in range(N)] sct+=score_t(A) for u in U: A=[location(B[i],t) for i in range(N)] scu+=score_u(A) if maxscore<sct*scu: maxscore=sct*scu LA=B for la in LA: print(la,la,la)