1146:C语言训练-舍罕王的失算 摘要:解题思路: 这道题显然是要存储很大很大的整数,所以我才用了unsigned long long int数据类型。注意事项:可以使用移位运算符来计算2的n次方。参考代码:#include <stdio.…… 题解列表 2023年05月15日 0 点赞 0 评论 210 浏览 评分:0.0
图像相似度 摘要:解题思路:注意事项:参考代码:public class Main { public static void main(String[] args) { Scanner scanne…… 题解列表 2023年05月15日 0 点赞 0 评论 196 浏览 评分:0.0
[编程入门]猴子吃桃的问题 摘要:一、解题思路:递推C参考代码:#include <stdio.h> int main() { int sum = 1, n; //第N天并没有吃,故s=1 scanf("%d", &n)…… 题解列表 2023年05月15日 0 点赞 0 评论 151 浏览 评分:0.0
笨小猴java题解 摘要:import java.util.Scanner;public class 笨小猴 { public static void main(String[] args) { Scann…… 题解列表 2023年05月15日 0 点赞 0 评论 270 浏览 评分:0.0
题解 1029: [编程入门]自定义函数处理素数 摘要:解题思路:注意事项:参考代码:def pri (n): if n==1: a=('prime') return a else: for i i…… 题解列表 2023年05月16日 0 点赞 0 评论 204 浏览 评分:0.0
一次循环找到最小值对应的索引 再一次循环输出数组中的元素 摘要:#include <stdio.h>#include <math.h>int main(){ int i,num[11],min,min_i=0; scanf("%d",&num[0]);…… 题解列表 2023年05月16日 0 点赞 0 评论 153 浏览 评分:0.0
[编程入门]自定义函数之字符串连接 摘要:解题思路:直接相加即可注意事项:头文件#include#includeusing namespace std;void func(string n,string m){ cout<<n+m;}int…… 题解列表 2023年05月16日 0 点赞 0 评论 205 浏览 评分:0.0
简单求三个数最大值 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int max(int a,int b){ //判断大小 return a>b?a:b; //使用条件运算符:如果a>b…… 题解列表 2023年05月16日 0 点赞 0 评论 157 浏览 评分:0.0
数字处理与判断1099 摘要:解题思路:将输入的整数变为字符串,用<string.h>里的strlen()计算该字符串的位数; 2.用for循环输出单个字符;注意事项:for循环中的循环次数=strle…… 题解列表 2023年05月16日 0 点赞 0 评论 131 浏览 评分:0.0
题目 1171: 蟠桃记解答 摘要:解题思路:a[n]=2*(a[n]+1)注意事项:别忘了if(n==1) result=1;这两行!参考代码:#includeusing namespace std; int f(int n){ …… 题解列表 2023年05月17日 0 点赞 0 评论 167 浏览 评分:0.0