用for循环解 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <stdlib.h>int main(void){ int a, b, sum=0; scanf("%d",&a…… 题解列表 2022年11月14日 0 点赞 0 评论 641 浏览 评分:9.9
最简单的C代码(没有之一)——分苹果 摘要:解题思路:最少分的苹果数就是第N位小朋友可以分到N个苹果。等差数列和公式为:(n+1)*n/2;注意事项:参考代码:#include<stdio.h>int main(){ int n; …… 题解列表 2022年12月28日 0 点赞 0 评论 819 浏览 评分:9.9
3012: 分苹果 摘要:```cpp #include using namespace std; int main() { int n; cin>>n; cout…… 题解列表 2023年01月08日 0 点赞 0 评论 561 浏览 评分:9.9
编写题解 3012: 分苹果 摘要:编写题解 3012: 分苹果 ``` #include using namespace std; int main() { int n; cin>>n; cout…… 题解列表 2023年02月13日 0 点赞 0 评论 568 浏览 评分:0.0
解法有很多,多思考进步才会大(简单解法) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,sum=0; scanf("%d",&a); //比如有4个小朋友分苹果,最小的…… 题解列表 2023年03月06日 0 点赞 0 评论 537 浏览 评分:0.0
题解 3012: 分苹果 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n,s=0; cin>>n; fo…… 题解列表 2023年07月10日 0 点赞 0 评论 535 浏览 评分:9.9
题解 3012: 分苹果 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>int main(){ int n; scanf("%d",&n); printf("%ld",(n+1)…… 题解列表 2023年07月20日 0 点赞 0 评论 550 浏览 评分:0.0
题解 3012: 分苹果 摘要: #include using namespace std; int main(){ int a,b=1,c=0; cin>>a; f…… 题解列表 2023年11月12日 0 点赞 0 评论 450 浏览 评分:0.0
3012: 分苹果 摘要:``` #include using namespace std; int main(){ int apple=0,x,sum=0; cin>>x; for( int i=1;i…… 题解列表 2023年11月13日 0 点赞 0 评论 498 浏览 评分:9.9
3012: 分苹果 摘要:``` #include using namespace std; int main(){ int n,i_phone=0,cut=0; cin>>n; for(int i=1…… 题解列表 2023年11月14日 0 点赞 0 评论 442 浏览 评分:9.9