2913: 整数去重(C语言) 摘要: #include int main() { int n; scanf("%d", &n); int a[n]; for (int i = 0; i < n; …… 题解列表 2023年07月27日 0 点赞 0 评论 544 浏览 评分:7.3
2853: 字符替换(C语言) 摘要: #include int main() { char a[59]; char m,n; scanf("%s %c %c",a,&m,&n); int str_le…… 题解列表 2023年08月10日 0 点赞 0 评论 565 浏览 评分:7.3
自然数的拆分(dfs) 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cstring> using namespace std; const int N=10010; int …… 题解列表 2023年08月12日 0 点赞 0 评论 1110 浏览 评分:7.3
运行时间过长(半天跑不出数)的看过来!!! 摘要:解题思路: 在CPU频率中,1GHz 就是每秒10亿次运算,你可以算一算自己CPU运算速度。 但是你若在写代码的过程中——比如说这道题——使用了三重嵌套for循环,那么就是…… 题解列表 2023年08月17日 1 点赞 0 评论 639 浏览 评分:7.3
信息学奥赛一本通T1176-谁考了第k名-题解(C语言代码排序) 摘要:解题思路:排序注意事项:参考代码:#include <stdio.h>struct stud{ char num[20]; float fen;}stu[1000],t;int main …… 题解列表 2023年09月07日 2 点赞 0 评论 1277 浏览 评分:7.3
C++ 字符串分类统计 摘要: #include //这是个非常万能的头文件 using namespace std; int main() { int y = 0,s = 0,k = 0,q = 0;?//需…… 题解列表 2023年09月08日 0 点赞 0 评论 649 浏览 评分:7.3
比较简单理解的方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,x,y; scanf("%d %d %d",&n,&x,&y); if(y<=x*n){ n = n…… 题解列表 2023年09月22日 0 点赞 0 评论 720 浏览 评分:7.3
3000-交换值的通解方法 摘要:import java.util.Scanner;public class Main { public static void main(String[] args) { Scanner scann…… 题解列表 2023年09月26日 0 点赞 0 评论 532 浏览 评分:7.3
牛吃牧草chichichi 摘要:牛吃牧草 牧草每天都在匀速生长,牧场可供15头牛吃20天,或20头牛吃10天,那么牧场每天新生的草供几头牛吃1天?解题思路:牛cattle 草grass 天day假设1c吃1g/1d;15c=20d*…… 题解列表 2023年10月05日 0 点赞 0 评论 2006 浏览 评分:7.3
优质题解 python实现2879错误探测 摘要:解题思路: 使用2个状态列表去存储每一行和每一列,奇数为1,偶数为0。本次的关键是如何找出只修改一次的位置。由于修改一次后,会同时改变其中一行和其中一列的奇偶性,因此要求行状态列表和列状态列表中只能各…… 题解列表 2023年10月05日 0 点赞 0 评论 793 浏览 评分:7.3