热门图集
最近更新
计算两点间距离:难点在于EOF错误输入的处理
摘要:解题思路:这一题逻辑上很简单,直接套公式就可以,但是难点在于这一题的测试数据中有一个很不标准的EOF输入,如果你用Python写很吃亏,因为input()输入不能直接处理该错误,建议加一个try-ex……
蓝桥杯基础练习-十六进制转八进制
摘要:```cpp#includeusing namespace std;int main(){ //乱搞 int a,b,c; cin>>a>>b>>c; cout……
Python代码-8除不尽的数
摘要:```pythondef check(n): if n % 8 == 1: if (n//8) % 8 == 1: if (n//8//8) ……
[信息学奥赛一本通T1495-孤岛营救问题] - (BFS,SPFA,DIjkstra)+状压DP
摘要:```cpp#include // #define int long long // 自觉去掉,当需要 memset 数组为 0x3f 时使用#define INF 0x3f3f3f3f ……
1162: 密码(c语言解法,步骤简明,容易看懂)
摘要:#include <stdio.h>#include <math.h>#include <string.h>void pd(char a[50]);int main……
1169: 绝对值排序
摘要:#include<stdio.h>int main(){ int i,j,n,e; int a[100]; while(scanf("%d",&n)) { i……
双向循环链表(作代码记录用)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>#include<string.h>typedef struct……