結果
| 問題 |
No.1201 お菓子配り-4
|
| コンテスト | |
| ユーザー |
hotman78
|
| 提出日時 | 2020-08-22 08:46:41 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 227 bytes |
| コンパイル時間 | 185 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 11,136 KB |
| 最終ジャッジ日時 | 2024-11-07 13:22:06 |
| 合計ジャッジ時間 | 44,028 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 35 TLE * 1 |
ソースコード
import math
MOD=1000000007
n=int(input())
m=int(input())
a=list(map(int,input().split()))
b=list(map(int,input().split()))
ans=0
for i in a:
for j in b:
ans=(ans+(i+1)*(j+1)+(math.gcd(i,j)+1)-2*(j+1))%MOD
print(ans)
hotman78