結果
問題 |
No.3241 Make Multiplication of 8
|
ユーザー |
|
提出日時 | 2025-08-22 21:10:10 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 118 ms / 2,000 ms |
コード長 | 204 bytes |
コンパイル時間 | 286 ms |
コンパイル使用メモリ | 82,488 KB |
実行使用メモリ | 88,512 KB |
最終ジャッジ日時 | 2025-08-22 21:10:14 |
合計ジャッジ時間 | 3,896 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 23 |
ソースコード
(n,),*e=[[*map(int,s.split())]for s in open(0)] d=[0]*4 for a,b in e: t=0 while a%2==0 and t<3: t+=1 a//=2 d[t]+=b ans=d[3] m=min(d[1],d[2]) d[2]-=m d[1]-=m ans+=m+d[2]//2+d[1]//3 print(ans)