結果
問題 |
No.3241 Make Multiplication of 8
|
ユーザー |
![]() |
提出日時 | 2025-08-23 21:34:15 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 223 bytes |
コンパイル時間 | 817 ms |
コンパイル使用メモリ | 81,924 KB |
実行使用メモリ | 76,808 KB |
最終ジャッジ日時 | 2025-08-23 21:34:20 |
合計ジャッジ時間 | 3,354 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 2 |
other | WA * 23 |
ソースコード
N=int(input()) result=0 x,y,z=0,0,0 for i in range(N): a,b=map(int,input().split()) if a%8==0: x+=b elif a%4==0: y+=b elif a%2==0: z+=b result+=x result+=y//2 if y%2==1: z+=1 print(x,y,z) print(result)