結果

問題 No.2043 Ohuton and Makura
ユーザー prussian_coder
提出日時 2022-08-19 21:35:59
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 58 ms / 2,000 ms
コード長 167 bytes
コンパイル時間 186 ms
コンパイル使用メモリ 81,920 KB
実行使用メモリ 61,312 KB
最終ジャッジ日時 2024-10-08 07:47:23
合計ジャッジ時間 1,994 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 18
権限があれば一括ダウンロードができます

ソースコード

diff #

A,B,C=map(int,input().split())
ans=0

def counts(x):
	return x*(x+1)//2


for i in range(1,C+1):
	m=B-min(B,C//i)
	ans+=max(0,A-i+1)*(counts(B)-counts(m))
print(ans)		
0