1 条题解
-
0
C++ :
#include <bits/stdc++.h> using namespace std; long long a, b, n; int main() { scanf("%lld%lld%lld", &a, &b, &n); printf("%lld", a*min(b-1,n)/b); }
Python :
# coding=utf-8 s=input().split() a=float(s[1])-1 if int(s[2])>=int(s[1])-1: b=int(a/(float(s[1])/float(s[0]))) print(b) else: a=float(s[2]) b=int(a/(float(s[1])/float(s[0]))) print(b)
- 1
信息
- ID
- 20979
- 时间
- 2000ms
- 内存
- 128MiB
- 难度
- (无)
- 标签
- (无)
- 递交数
- 0
- 已通过
- 0
- 上传者