星期判断机(( •̀ ω •́ )✧) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int n; scanf("%d",&n); switch(n) { cas…… 题解列表 2023年10月08日 0 点赞 0 评论 278 浏览 评分:0.0
判断闰年(宏定义,给自己找找乐子) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #define YEAR(a) a%100?(a%4?'N':'Y'):(a%400?'N&…… 题解列表 2023年10月08日 0 点赞 0 评论 230 浏览 评分:0.0
用栈解决这个问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>#include<math.h>#define maxsize 101typedef struct{…… 题解列表 2023年10月08日 0 点赞 0 评论 364 浏览 评分:0.0
编写题解 2847: 找第一个只出现一次的字符 摘要:解题思路:注意事项:参考代码:a = input()Is = Falsefor i in a: if a.count(i) == 1: print(i) Is = T…… 题解列表 2023年10月08日 0 点赞 0 评论 176 浏览 评分:0.0
编写题解 2835: 计算书费 摘要:解题思路:注意事项:参考代码:price = (28.9, 32.7, 45.6, 78, 35, 86.2, 27.8, 43, 56, 65)quantity = tuple(map(int, i…… 题解列表 2023年10月08日 0 点赞 0 评论 192 浏览 评分:0.0
整数大小比较 摘要:解题思路:注意事项: = 是赋值,==是等于。参考代码:、#include<stdio.h>int main(){ int a,b; scanf("%d %d…… 题解列表 2023年10月08日 0 点赞 0 评论 164 浏览 评分:0.0
凯撒密码—字母循环 摘要:####这个题的关键是要把26个大写字母循环起来 解题思路: 题意是把每个字符串的字符向左移五位然后输出新的字符串,根据Ascll表可以知道对字符减5可以得到左移5位的字符,遍历每次输入的字符串对…… 题解列表 2023年10月08日 0 点赞 0 评论 257 浏览 评分:0.0
C语言考试练习题_一元二次方程 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<math.h> int main() { int a,b,c; scanf("%d%d%d",&a,&…… 题解列表 2023年10月08日 0 点赞 0 评论 201 浏览 评分:0.0
C语言思路简单,易懂!!! 理解万岁 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <stdlib.h>#define len sizeof(Queue)typedef struct s{ in…… 题解列表 2023年10月08日 0 点赞 0 评论 201 浏览 评分:0.0
题解 1370: SPY 摘要:解题思路:这是一个普通的模拟判定题。在这里,我们把每个人物名字用map存起来方便处理数据。题目中需要我们判断去逮捕哪些可能的间谍,通过3个列表中的人名来进行判定。A列表:到来的人B列表:将要从Y城送来…… 题解列表 2023年10月08日 0 点赞 0 评论 278 浏览 评分:0.0