开心的K:素数回文数的个数 摘要:解题思路:注意事项:参考代码:import java.util.Scanner; public class Main { public static void main(String[] a…… 题解列表 2024年03月02日 0 点赞 0 评论 265 浏览 评分:0.0
编写题解 2818: 分离整数的各个数位 摘要:解题思路:注意事项:参考代码:n=input()for i in range(len(n)-1,-1,-1): print(n[i],end=' ')…… 题解列表 2024年03月02日 0 点赞 0 评论 213 浏览 评分:0.0
题解 1267: A+B Problem 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ int a,b; cin>>a>>b; cout<…… 题解列表 2024年03月02日 0 点赞 0 评论 364 浏览 评分:0.0
编写题解 2819: 数字反转 摘要:解题思路:注意事项:参考代码:n=input()fn=str(abs(int(n)))#取整+绝对值+字符串,避免‘-’的影响r=0#反转新数for j in range(len(fn)-1,-1,-…… 题解列表 2024年03月02日 0 点赞 0 评论 206 浏览 评分:0.0
用三目操作符求最大值 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int a=0; int b=0; int c=0; scanf("%d %d %d"…… 题解列表 2024年03月03日 0 点赞 0 评论 318 浏览 评分:0.0
阶乘求和的“骗术” 摘要:注意事项: 当int使用之后,根据测试用例,算出结果正确时,而提交未通过时,要多看看题目对于数的限制,n不超过20,而20的阶乘是一个很大的数,可能已经超过int的范围,这个时候我们考虑用long l…… 题解列表 2024年03月03日 0 点赞 0 评论 138 浏览 评分:0.0
绝对值排序 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;bool cmp(int a,int b){ return abs(a)>ab…… 题解列表 2024年03月03日 0 点赞 0 评论 160 浏览 评分:0.0
1036: [编程入门]带参数宏定义练习 摘要:解题思路:定义一个带参的宏,使两个参数的值互换,并写出程序,输入两个数作为使用宏时的实参。参考代码:#include <stdlib.h> #include <stdio.h> #define…… 题解列表 2024年03月03日 0 点赞 0 评论 181 浏览 评分:0.0
链表之报数问题(C语言代码) 摘要:#include<stdio.h>#include<malloc.h>typedef struct people{ int number; struct people *next;}ST;…… 题解列表 2024年03月03日 1 点赞 0 评论 179 浏览 评分:0.0
1068: 二级C语言-温度转换 摘要:解题思路:注意事项:参考代码:def ctof(i): print('c=%d->f=%d'%(i,32 + i* 9/5))for i in range(-100,151,5)…… 题解列表 2024年03月03日 0 点赞 0 评论 592 浏览 评分:0.0