5 条题解
-
1
202502cj14周子祥 (周子祥) LV 8 @ 2025-03-16 09:32:25
#include<iostream>
#include<cmath>
using namespace std;
int main()
{
int n,s,d;
cin>>n>>s>>d;
cout<<floor(n-d/s);
return 0;
}//专坑袁浩轩 -
12025-03-16 09:32:21@
#include<iostream>
#include<cmath>
using namespace std;
int main()
{
int n,s,d;
cin>>n>>s>>d;
cout<<floor(n-d/s);
return 0;
}//专坑袁浩轩 -
02024-12-02 20:46:28@
#include <stdio.h>
int main() {
int n, a, b, ans;
while (scanf("%d", &n) == 1) {
a = n;
b = n;
ans = n;
while (a >= 3 || b >= 4) {
n = a / 3 + b / 4;
a = a % 3 + n;
b = b % 4 + n;
ans += n;
}
printf("%d\n", ans);
}
return 0;
} -
02024-08-15 18:29:39@
#include <stdio.h>
int main() {
int n, a, b, ans;
while (scanf("%d", &n) == 1) {
a = n;
b = n;
ans = n;
while (a >= 3 || b >= 4) {
n = a / 3 + b / 4;
a = a % 3 + n;
b = b % 4 + n;
ans += n;
}
printf("%d\n", ans);
}
return 0;
} -
-32021-10-29 15:57:55@
#include <stdio.h>
int main() {
int n, a, b, ans;
while (scanf("%d", &n) == 1) {
a = n;
b = n;
ans = n;
while (a >= 3 || b >= 4) {
n = a / 3 + b / 4;
a = a % 3 + n;
b = b % 4 + n;
ans += n;
}
printf("%d\n", ans);
}
return 0;
}
- 1
信息
- ID
- 1040
- 难度
- 4
- 分类
- (无)
- 标签
- 递交数
- 156
- 已通过
- 66
- 通过率
- 42%
- 上传者