题解列表
如何解决输入问题我已经解决了,还有我用的结构体数组(c语言代码)
摘要:这道题最难的就是输入问题,题解里面有个哥们也说了,每行的最后一行有一个换行符。但是,最后一个输入后面也只有换行字符,没有文件结束字符。(我已经试过了,真的只有换行符,利用换行符是无法实现连续输入的,因……
2875: 回文子串
摘要:解题思路:注意事项:参考代码:#include <stdlib.h>
#include <stdio.h>
#include <iostream>
#include <string.h>
us……
白细胞计数 学习新函数
摘要:解题思路:利用冒泡排序,直接从小到大排好数组顺序(或者利用algorithm库的sort函数排序)再利用cmath库求绝对值和较大的数省去重复利用if-else函数,使代码更简洁客观参考代码:int ……
1011: [编程入门]最大公约数与最小公倍数
摘要:参考代码:#include<bits/stdc++.h>using namespace std;typedef int ll;ll n,m;int main(){ cin>>n>>m; int mx=……
红红火火恍恍惚惚或或或或或或或或或或或或或或或或或或或或或或或
摘要:解题思路:注意事项:1492(题号)参考代码:#include<iostream>#include<cstring>using namespace std;int tag[10][10],d[10],……
909090909090909090909090909
摘要:解题思路:注意事项:参考代码:#include<iostream>#include<queue>using namespace std;const int n=10;int a[n+5][n+5];i……
909090909090909090909090909
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int a[15][15],c=0;void f(int x,int y){ if(……