結果
| 問題 |
No.864 四方演算
|
| ユーザー |
c-yan
|
| 提出日時 | 2020-11-09 00:10:51 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 295 bytes |
| コンパイル時間 | 85 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-07-22 15:48:08 |
| 合計ジャッジ時間 | 4,579 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 25 WA * 2 |
ソースコード
N = int(input())
K = int(input())
def f(x):
if x > 2 * N:
return 0
if x - 1 < N:
return x - 1
return (x - 1) - ((x - 1) - N) * 2
result = 0
for i in range(2, int(K ** 0.5) + 1):
if K % i != 0:
continue
result += f(i) * f(K // i) * 2
print(result)
c-yan