結果
| 問題 | No.864 四方演算 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-09-05 06:34:48 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 226 bytes |
| 記録 | |
| コンパイル時間 | 122 ms |
| コンパイル使用メモリ | 84,992 KB |
| 実行使用メモリ | 58,880 KB |
| 最終ジャッジ日時 | 2026-05-28 08:49:35 |
| 合計ジャッジ時間 | 2,381 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 25 WA * 2 |
ソースコード
N = int(input())
K = int(input())
ans = 0
for a in range(1, int(K**0.5)+1):
if K % a != 0:
continue
b = K // a
a = min(a-1, max(0, 2*N-a+1))
b = min(b-1, max(0, 2*N-b+1))
ans += a*b*2
print(ans)