1223: 敲七游戏 摘要:解题思路:一行解,融入许多函数,运行很爽。注意事项:参考代码:print(len(set(list(map(lambda x : x+1 if (x % 7 == 0 or '7' i…… 题解列表 2023年01月31日 0 点赞 0 评论 841 浏览 评分:0.0
ikun崩溃代码 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ double x; scanf("%lf",&x); printf("%f\n",x); print…… 题解列表 2023年01月31日 0 点赞 0 评论 541 浏览 评分:0.0
1062: 二级C语言-公约公倍 基本思路:最大公约数一定比n、m中的最小的数据小或是一样。最小公倍数一定是n*m或者是更小的数。```c#includeintmain(){intn,m;//输入的两个整数。inti;intmin;//用来表示n、m中最小的数。inty,b;//最大公约数y,最小公倍数b。 题解列表 2023年01月31日 0 点赞 0 评论 466 浏览 评分:0.0
去掉空格 C语言 通俗易懂 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ for (char a[100] = { 0 }; gets(a);)…… 题解列表 2023年01月31日 0 点赞 0 评论 453 浏览 评分:0.0
ikun崩溃代码 摘要:解题思路:套用if函数判定小数部分舍去,不构成完整的苹果。注意事项:参考代码:#include <stdio.h>int main(){ int n,x,y,z; scanf("%d %d %d",…… 题解列表 2023年01月31日 0 点赞 0 评论 450 浏览 评分:0.0
ikun崩溃代码 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>int main(){ double x1,y1,x2,y2,x3,y3; double s,p,…… 题解列表 2023年01月31日 0 点赞 0 评论 532 浏览 评分:0.0
ikun崩溃代码 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>int main(){ double n; scanf("%lf",&n); printf("…… 题解列表 2023年01月31日 0 点赞 0 评论 556 浏览 评分:0.0
年会题解解解 解题思路:记忆化搜索(深度搜索+动态规划)+树观察题目发现可以将学校各教职工关系构建成一颗树,由题目限制可得,对于树中任意一个节点都应该有1.自己来,学生不来。2.自己不来,学生来或学生不来两种情况,而对于这两种情况,1=自己的活跃度+学生不来的活跃度。 题解列表 2023年01月31日 0 点赞 0 评论 697 浏览 评分:0.0
结构体之成绩记录(简单易懂) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>struct student { char num[10]; char name[20]; int a; i…… 题解列表 2023年01月31日 0 点赞 0 评论 495 浏览 评分:0.0
基础的筛选n内素数 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;bool is_prim(int i){ bool ans=true; for(i…… 题解列表 2023年01月31日 0 点赞 0 评论 491 浏览 评分:0.0