結果
| 問題 |
No.2043 Ohuton and Makura
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-08-19 22:07:48 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 64 ms / 2,000 ms |
| コード長 | 490 bytes |
| コンパイル時間 | 948 ms |
| コンパイル使用メモリ | 82,232 KB |
| 実行使用メモリ | 63,616 KB |
| 最終ジャッジ日時 | 2024-10-08 08:51:39 |
| 合計ジャッジ時間 | 2,562 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 18 |
ソースコード
import sys,random,bisect
from collections import deque,defaultdict,Counter
from heapq import heapify,heappop,heappush
from itertools import cycle, permutations
from math import log,gcd
input = lambda :sys.stdin.readline().rstrip()
mi = lambda :map(int,input().split())
li = lambda :list(mi())
A,B,S = mi()
res = 0
for h in range(1,S+1):
w_max = min(S//h,B)
if h <= A:
#res += (A-h+1) * (B-w+1)
res += (A-h+1) * (w_max * (B+1) - w_max * (w_max+1)//2)
print(res)