1147角谷猜想(while循环) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int N; cin >> N; while (N != 1) { …… 题解列表 2024年07月08日 0 点赞 0 评论 138 浏览 评分:0.0
C语言训练-角谷猜想-题解(Java代码) 摘要:```java import java.util.Scanner; public class Main { public static void main(String[] args) {…… 题解列表 2019年11月01日 0 点赞 0 评论 527 浏览 评分:0.0
c代码记录之角谷猜想-C 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int deal(int m){ if(m%2==0){ printf("%d/2=%d\n",m,…… 题解列表 2023年11月14日 0 点赞 0 评论 56 浏览 评分:0.0
循环和if()语句 摘要:解题思路:注意事项:参考代码: #include<stdio.h> int main () { int x,n; scanf("%d",&x);   题解列表 2022年05月12日 0 点赞 0 评论 119 浏览 评分:0.0
C语言训练-角谷猜想 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main () { int m; scanf("%d",&m); while(m!=1) { …… 题解列表 2022年12月21日 0 点赞 0 评论 110 浏览 评分:0.0
C语言训练-角谷猜想 (C语言代码) 摘要:解题思路:套循环,然后逐次分解注意事项:跳出循环的条件参考代码:#include<stdio.h>main(){ int a; scanf("%d",&a); while(1) { if(a!=1)…… 题解列表 2018年12月04日 0 点赞 0 评论 796 浏览 评分:2.0
C语言训练-新手while循环+if判定(C语言代码) 摘要:解题思路:注意事项:参考代码:int main(){ int num,t; scanf("%d",&num); while(num!=1) { if(num%2=…… 题解列表 2018年12月09日 7 点赞 1 评论 457 浏览 评分:2.0
C语言训练-角谷猜想-题解(C++代码) 摘要:解题思路:输入n,然后while循环当n不为1时判断n的奇偶,分别执行对应的操作,阅读理解题目即可注意事项:输出每句后要对n的值进行更新,输出句和更新句两两要写在一个域内参考代码:/* */ …… 题解列表 2020年08月25日 0 点赞 0 评论 547 浏览 评分:4.6
C语言训练-角谷猜想-题解(C++代码) 摘要:地方发错了,应该是1146 【C语言训练】舍罕王的失算 **题目中的样例输出的值是错误的,因为答案是: 2^0+2^1+2^2+.....+2^63=2^64-1=18,446,744,073…… 题解列表 2020年02月25日 0 点赞 0 评论 480 浏览 评分:4.7
1147: C语言训练-角谷猜想 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ long long aj; cin>>aj; …… 题解列表 2024年01月15日 0 点赞 0 评论 73 浏览 评分:6.0