python编写题解 1039: [编程入门]宏定义之闰年判断 摘要:解题思路:普通年能被4整除且不能被100整除的为闰年,世纪年能被400整除的是闰年参考代码:def LEAP_YEAR(year): if year % 4 == 0 and year % …… 题解列表 2024年03月07日 0 点赞 0 评论 432 浏览 评分:0.0
python编写题解 2793: 点和正方形的关系 摘要:解题思路:求x,y的区间注意事项:判断一个给定的点是否在这个正方形内参考代码:x, y = map(int, input().split()) if x >= -1 and x <= 1 and y…… 题解列表 2024年03月07日 0 点赞 0 评论 629 浏览 评分:0.0
利用类型转换解Hello, world! 摘要:解题思路:利用char,把int类型转换为char类型即可注意事项:参考代码:#include<iostream>using namespace std;int main(){int a = 0;wh…… 题解列表 2024年03月07日 0 点赞 0 评论 259 浏览 评分:0.0
python编写题解 1028: [编程入门]自定义函数求一元二次方程 摘要:解题思路:参考代码:from math import sqrt a, b, c = map(int, input().split()) d = b**2-4*a*c e = sqrt(4*a*c…… 题解列表 2024年03月07日 0 点赞 0 评论 335 浏览 评分:0.0
python编写题解 1480: 模拟计算器 摘要:注意事项: 商是整除while True: try: a, b, c = map(str, input().split()) a, b = int(a),…… 题解列表 2024年03月07日 0 点赞 0 评论 197 浏览 评分:0.0
不用多余变量完成 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>void dg(int n, char* arr){ if (n - strlen(arr…… 题解列表 2024年03月07日 1 点赞 0 评论 288 浏览 评分:0.0
用筛法求之N内的素数 摘要:解题思路:筛法就是把数据按从小到大的顺序排列,找到第一个素数,再筛选掉数据内所有与此数有关的数,完成之后再找下一个素数,再次筛选,以此类推注意事项:参考代码:#include<iostream>usi…… 题解列表 2024年03月07日 0 点赞 0 评论 302 浏览 评分:0.0
A+B for Input-Output Practice (II) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a; int arr[100]; int sum = 0; c…… 题解列表 2024年03月07日 0 点赞 0 评论 464 浏览 评分:0.0
A+B for Input-Output Practice (III) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a, b; while(cin>>a>>b) { if (a…… 题解列表 2024年03月07日 0 点赞 0 评论 189 浏览 评分:0.0