题解 1171: 蟠桃记

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

筛选

蟠桃记-题解(C++代码)

摘要:解题思路:找规律来推断通式注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n; while(scanf("%d……

1171蟠桃记(两个while循环)

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

题目 1171: 蟠桃记解答

摘要:解题思路:a[n]=2*(a[n]+1)注意事项:别忘了if(n==1) result=1;这两行!参考代码:#includeusing namespace std; int f(int n){ ……

C++超级简单的基础题解

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

编写题解 1171: 蟠桃记

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

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

摘要:解题思路:逆序求,注意最后一天还没有开始吃注意事项:参考代码:#include <iostream> #include <cstdlib> #include <cstring> #include……

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

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

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

摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; float fun2(float n) { return n - n / 2 -……