1075: 台球碰撞(python) 摘要:核心:边界碰撞之后如何计算——分开算,用两while循环代码:from math import * while True: L, W, x, y, r, a, v, s = map(int…… 题解列表 2024年08月21日 0 点赞 0 评论 519 浏览 评分:9.9
见鬼了,哪位大佬帮我看看代码,求求了。 ```c#include#include#defineMAX101intbf(char*num,char*num1){inti=0,j=0;while((i 题解列表 2024年08月21日 1 点赞 0 评论 460 浏览 评分:9.9
暴力拆解 分解质因数 直接算出最小的质因数 摘要:解题思路:某数已知是两个质数的乘积,这里设为n大质数设为b;小指数设为a根号下n一定大于较小的质数a(可数学验证),以此解决计算时间超时的问题参考代码:int n;scanf("%d",&n);int…… 题解列表 2024年08月21日 0 点赞 0 评论 656 浏览 评分:9.9
2872: 字符环 摘要:解题思路:注意事项:参考代码:#include <stdlib.h> #include <stdio.h> #include <iostream> #include <string.h> us…… 题解列表 2024年08月22日 0 点赞 0 评论 370 浏览 评分:9.9
如何解决输入问题我已经解决了,还有我用的结构体数组(c语言代码) 这道题最难的就是输入问题,题解里面有个哥们也说了,每行的最后一行有一个换行符。但是,最后一个输入后面也只有换行字符,没有文件结束字符。(我已经试过了,真的只有换行符,利用换行符是无法实现连续输入的,因为你无法结束程序,你的程序一次只能计算一次,不能连续计算)而scanf的返回值就不好用了。 题解列表 2024年08月22日 0 点赞 0 评论 606 浏览 评分:9.9
2875: 回文子串 摘要:解题思路:注意事项:参考代码:#include <stdlib.h> #include <stdio.h> #include <iostream> #include <string.h> us…… 题解列表 2024年08月23日 0 点赞 0 评论 413 浏览 评分:9.9
白细胞计数 学习新函数 解题思路:利用冒泡排序,直接从小到大排好数组顺序(或者利用algorithm库的sort函数排序)再利用cmath库求绝对值和较大的数省去重复利用if-else函数,使代码更简洁客观参考代码:intM;scanf("%d",&M);doublea[M];for(inti=0;i 题解列表 2024年08月23日 0 点赞 0 评论 575 浏览 评分:9.9 菜鸟编程,高手勿看 摘要:解题思路:利用while 循环来进行元素逆置注意事项:参考代码:#include<iostream>using namespace std;int main(){ int arr[10]; for (…… 题解列表 2024年08月23日 0 点赞 0 评论 475 浏览 评分:9.9 1011: [编程入门]最大公约数与最小公倍数 摘要:参考代码:#include<bits/stdc++.h>using namespace std;typedef int ll;ll n,m;int main(){ cin>>n>>m; int mx=…… 题解列表 2024年08月24日 0 点赞 1 评论 533 浏览 评分:9.9 红红火火恍恍惚惚或或或或或或或或或或或或或或或或或或或或或或或 摘要:解题思路:注意事项:1492(题号)参考代码:#include<iostream>#include<cstring>using namespace std;int tag[10][10],d[10],…… 题解列表 2024年08月24日 0 点赞 0 评论 607 浏览 评分:9.9 « 12...5742574357445745574657475748...59105911 »
菜鸟编程,高手勿看 摘要:解题思路:利用while 循环来进行元素逆置注意事项:参考代码:#include<iostream>using namespace std;int main(){ int arr[10]; for (…… 题解列表 2024年08月23日 0 点赞 0 评论 475 浏览 评分:9.9
1011: [编程入门]最大公约数与最小公倍数 摘要:参考代码:#include<bits/stdc++.h>using namespace std;typedef int ll;ll n,m;int main(){ cin>>n>>m; int mx=…… 题解列表 2024年08月24日 0 点赞 1 评论 533 浏览 评分:9.9
红红火火恍恍惚惚或或或或或或或或或或或或或或或或或或或或或或或 摘要:解题思路:注意事项:1492(题号)参考代码:#include<iostream>#include<cstring>using namespace std;int tag[10][10],d[10],…… 题解列表 2024年08月24日 0 点赞 0 评论 607 浏览 评分:9.9