(简单易懂)不容易系列 (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
不容易系列 (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语言代码) 摘要:解题思路:每一次减1乘2,有几个站就做几次就可以了注意事项:多项输入,记得每次初始化为3参考代码:#include<stdio.h> int main() { int n; int a; …… 题解列表 2018年12月04日 0 点赞 0 评论 1115 浏览 评分:0.0
不容易系列 (C语言代码) 摘要:解题思路:最后只剩下3只羊,所以每次都要拿剩下的羊减去1再乘以2注意事项:注意利用for循环和while循环参考代码:#include<stdio.h>int main(){ int n,a[1…… 题解列表 2019年03月13日 0 点赞 0 评论 1233 浏览 评分:0.0
不容易系列 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,i; scanf("%d",&a); while(a--){ int sum=3; scan…… 题解列表 2019年03月16日 0 点赞 0 评论 1166 浏览 评分:0.0
不容易系列 (C语言代码)(点我有惊喜) 摘要:解题思路:利用while和for循环 注意事项:注意等量关系即可参考代码:#include<stdio.h>int main(void){ int n, a[30],i,sum; scanf("…… 题解列表 2019年04月09日 0 点赞 0 评论 1309 浏览 评分:0.0
不容易系列-题解(C语言代码) ```c#pragmawarning(disable:4996)#include#include#include#includeintmain(){inti,n,a,s;scanf("%d",&n);while(n){scanf("%d",&a);s=3;for(i=0;i 题解列表 2020年02月13日 0 点赞 0 评论 1187 浏览 评分:0.0
不容易系列 ```c#includeinthanshu(intk);//函数声明inthanshu(intk)//函数定义{intn=0,i;//n为第K站的绵羊的数量if(k==0)return3;//k==0,表示第0站,返回3,表示只有三只羊else{for(i=1;i 题解列表 2021年12月26日 0 点赞 0 评论 640 浏览 评分: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>int jisuan(int a);int main(){ int n,a; scanf("%d",&n); whil…… 题解列表 2017年07月31日 0 点赞 0 评论 1506 浏览 评分:8.0