题解 1147: C语言训练-角谷猜想

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

筛选

1147角谷猜想(while循环)

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

c代码记录之角谷猜想-C

摘要:解题思路:注意事项:参考代码:#include<stdio.h> int deal(int m){     if(m%2==0){         printf("%d/2=%d\n",m,……

循环和if()语句

摘要:解题思路:注意事项:参考代码:     #include<stdio.h>    int main () {         int x,n;         scanf("%d",&x);   

C语言训练-角谷猜想

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main () {    int m;    scanf("%d",&m);    while(m!=1)    {      ……

C语言训练-角谷猜想-题解(C++代码)

摘要:解题思路:输入n,然后while循环当n不为1时判断n的奇偶,分别执行对应的操作,阅读理解题目即可注意事项:输出每句后要对n的值进行更新,输出句和更新句两两要写在一个域内参考代码:/* */ ……

C语言训练-角谷猜想-题解(C++代码)

摘要:地方发错了,应该是1146 【C语言训练】舍罕王的失算 **题目中的样例输出的值是错误的,因为答案是: 2^0+2^1+2^2+.....+2^63=2^64-1=18,446,744,073……

1147: C语言训练-角谷猜想

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){    long long aj;    cin>>aj; ……