不容易系列 (C语言代码) 摘要:解题思路:最后只剩下3只羊,所以每次都要拿剩下的羊减去1再乘以2注意事项:注意利用for循环和while循环参考代码:#include<stdio.h>int main(){ int n,a[1…… 题解列表 2019年03月13日 0 点赞 0 评论 1233 浏览 评分:0.0
不容易系列 (C语言代码) 摘要:解题思路:每一次减1乘2,有几个站就做几次就可以了注意事项:多项输入,记得每次初始化为3参考代码:#include<stdio.h> int main() { int n; int a; …… 题解列表 2018年12月04日 0 点赞 0 评论 1115 浏览 评分:0.0
不容易系列 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int f(int n);int f(int n) { int i, a=3; for(i=0; i<n; i++) { …… 题解列表 2018年07月26日 0 点赞 0 评论 999 浏览 评分:0.0
不容易系列 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { int N; cin>>N; int n; …… 题解列表 2018年05月13日 0 点赞 0 评论 1671 浏览 评分:0.0
不容易系列 (Java代码) 解题思路:注意事项:参考代码:publicclass不容易系列{publicstaticvoidmain(String[]args){//TODOAuto-generatedmethodstubScannerin=newScanner(System.in);intN=in.nextInt();inta 题解列表 2018年05月01日 0 点赞 0 评论 1096 浏览 评分:0.0
编写题解 1180: 不容易系列 摘要:解题思路:注意事项:参考代码:#include<stdio.h>void sum(int t){ int i; int x=3; for(i=1;i<=t;i++) { …… 题解列表 2023年01月04日 0 点赞 0 评论 562 浏览 评分:0.0
(简单易懂)不容易系列 (C语言代码) 摘要:参考代码:#include<stdio.h>#include<string.h>#include<math.h>int main(){ int n,i,m; scanf("%d",&n);…… 题解列表 2018年01月05日 0 点赞 0 评论 1449 浏览 评分:0.0
1180: 不容易系列(逆向思维求解) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int T; cin >> T; while (T--) { int…… 题解列表 2024年07月13日 0 点赞 0 评论 458 浏览 评分:0.0
不容易系列(递推) 摘要:解题思路:递推注意事项:参考代码:#include<iostream>#include<cmath>usingnamespacestd;in…… 题解列表 2025年01月21日 0 点赞 0 评论 398 浏览 评分:0.0
不容易系列-题解(C++代码)公差为2的等差数列 其实题目很简单,本质上就是求等差数列的某一项通项公式为:An=A1+(n-1)*d```cpp#includeusingnamespacestd;intmain(){intN;cin>>N;int*num=newint[N];for(inti=0;i>num[i];}for(i 题解列表 2019年12月12日 0 点赞 0 评论 1607 浏览 评分:7.0