题解列表
2550: 区间求和(JAVA版本)
摘要:```javaimport java.util.Scanner;public class Main { public static void main(String[] args……
来自一个肺雾的参考评论各处后的理解
摘要:解题思路:我一直在纠结这些蚂蚁出发的位置,纠结他们是否会相遇,其实是从最左端看起,当初始位置是负数时,头向左,两种情况可以感染蚂蚁,一种感染绝对值小于初始蚂蚁的同时头向右的蚂蚁,一种是绝对值大于初始蚂……
编写题解 2975: 1的个数
摘要:**A little easy...****Code****代码:**```cpp#include#includeusing namespace std;int n;v……
容易理解的C++代码外加两大模版(日期问题)
摘要:解题思路:先导入数据;然后遍历1960~2059的每一天;在遍历时判断是否符合条件;结束时return0;注意事项:这道题可以延伸两大模版:一:万能模版#include<……
2225: 蓝桥杯算法训练-出现次数最多的整数(C语言捡漏)
摘要:解题思路:一看就懂注意事项:参考代码:#include <stdio.h>#include <string.h>int main(){ int a[1000],b[10000]……
编写题解 1835: 蓝桥杯2016年第七届真题-碱基
摘要:解题思路:注意事项:参考代码:#include <cstdio>#include <algorithm>#include <iostream>#include &l……
IP判断,简单易懂,看不懂我吃kfc
摘要:解题思路:调用#include<stdlib.h>里的sscanf注意事项:int sscanf(const char *str, const char *format, ...);str……
C语言训练-字符串正反连接(c)
摘要:#include <stdio.h>#include <string.h>int main(){ char a[120]; int x,j=0,i; gets(a); x=st……
1131(C语言)最牛逼最简单的方法
摘要:#include <stdio.h>#include <string.h>int main(int argc, char *argv[]){ int n,i,m=1,j=0,k……