编写题解 1783: 星期判断机 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ enum week{ Sun=0,Mon,Tues,Wed,Thurs,Fri,Sat} day; …… 题解列表 2022年10月19日 0 点赞 0 评论 532 浏览 评分:9.9
编写题解 1810: [编程基础]输入输出练习之精度控制3 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ char char_1; int number_1; float float_1; do…… 题解列表 2022年10月19日 0 点赞 0 评论 262 浏览 评分:0.0
简单明了,一眼看懂 摘要:解题思路:使用函数分步解决注意事项:若找不到这样的数则print(-1)参考代码:#判断是否是回文 def isPalindrome(num): temp=int(str(num)[::-…… 题解列表 2022年10月19日 0 点赞 0 评论 306 浏览 评分:0.0
开灯游戏(C语言代码) 摘要:```c #include int Switch(int n) { if (n == 0) { return 1; } else if (n == 1) { re…… 题解列表 2022年10月19日 0 点赞 0 评论 591 浏览 评分:9.9
复数求和问题 摘要:解题思路:建立链表,求链表指定数据域的和。注意事项:参考代码:#include<iostream>using namespace std;#define OK 1#define ERROR 0#def…… 题解列表 2022年10月19日 0 点赞 0 评论 277 浏览 评分:8.0
swap () :交换两个变量值 摘要:解题思路: 使用 STL 算法:swap(),交换两个元素注意事项:参考代码:#include<iostream>using namespace std;#define myswap(x,y) (s…… 题解列表 2022年10月19日 0 点赞 0 评论 296 浏览 评分:0.0
斜率计算——python简单解法 摘要:解题思路:数学问题,y坐标之差除以x坐标之差注意事项:直线垂直于x轴的时候,斜率不存在参考代码:x1,y1=map(int,input().split())x2,y2=map(int,input().…… 题解列表 2022年10月19日 0 点赞 0 评论 401 浏览 评分:9.9
题目 1020: [编程入门]猴子吃桃的问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int tao(int n,int sum){ if(n--) sum=(tao(n,sum)+1)*2; else sum=1; r…… 题解列表 2022年10月19日 0 点赞 0 评论 385 浏览 评分:0.0
蓝桥杯算法提高VIP-最大乘积 摘要:#define _CRT_SECURE_NO_WARNINGS #include<cstdio> #include<cstring> #include<algorithm> #include<…… 题解列表 2022年10月19日 0 点赞 0 评论 474 浏览 评分:9.9
一看就会的数字逆序输出 摘要:解题思路:定义两个数组,一个存放原数列,一个存放逆序后的数列注意事项:参考代码:#include<stdio.h>void main(){ int i,a[10],b[10],k; for…… 题解列表 2022年10月19日 0 点赞 0 评论 265 浏览 评分:0.0