题解 1171: 蟠桃记

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

1171蟠桃记(两个while循环)

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n; while (cin >> n) { int m = ……

稍微认真解释一下吧,我觉得前辈们写的挺好,但我再详细分析解释一下吧,我再熟悉熟悉问题

摘要:解题思路:   题目分析过程【 我这题卡了好久(捂脸),然后看了大神的题解我才知道,原来我题目分析理解错了(捂脸)】【当你有解题思路的时候,而且你肯定你的解题思路没问题,那你就应该要怀疑你题目意思是不……

【蟠桃记】 (C语言代码)

摘要:解题思路:逆推回去从最后一天开始  (sum+1)*2注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int i,sum=1,n; whi……

【蟠桃记】 (C++代码)

摘要:解题思路:构造函数注意事项:参考代码:#include<iostream>using namespace std;int lsum(int n){ if (n == 1) { return 1; }……

【蟠桃记】 简单易懂

摘要:解题思路:注意事项:找出关系:前一天的数目=(后一天数目+1)*2;采用循环,注意循环次数参考代码#include<stdio.h>int main(){   int N,s,t;   while(s……

可AC。。。。。。。。

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int total(int n){    if(n==1)        return 1;    else if(n==0)     ……

【蟠桃记】 (C语言代码)

摘要:解题思路:注意事项:参考代码:# include<stdio.h>int main(){int i,n,sum=1;printf("请输入一个正整数n(1<n<30)\n");scanf("%d",&……

【蟠桃记】 (Java代码)

摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args) {……