摘要:
代码 #include <iostream> #include <cstdio> #include <iomanip> using namespace std; float a[1001]={999999}; float b[1001]={999999}; float c[2002]={0};//放 阅读全文
posted @ 2022-07-18 22:36
qwasdasd
阅读(17)
评论(0)
推荐(0)
摘要:
代码 #include <iostream> #include <cstdio> using namespace std; int main() { int n; int a; int cnt=0; int tmp=0; cin>>n; for(int i=0;i<n;i++){ cin>>a; i 阅读全文
posted @ 2022-07-18 16:30
qwasdasd
阅读(22)
评论(0)
推荐(0)
摘要:
代码 #include <iostream> #include <cstdio> using namespace std; int a[10001];//记录每个数的值 int b[10001]={0};//记录子串的长度 int m[10001]={-1};//记录子串的最大长度 int l[10 阅读全文
posted @ 2022-07-18 16:13
qwasdasd
阅读(25)
评论(0)
推荐(0)
摘要:
代码 #include <iostream> #include <cstdio> #include <string> using namespace std; int ttoi_diy(string a){ string t1,t2,t3; int cnt; t1=a.substr(0,2); t2 阅读全文
posted @ 2022-07-18 15:34
qwasdasd
阅读(32)
评论(0)
推荐(0)
摘要:
代码 #include <iostream> #include <cstdio> #include <string> using namespace std; string a[10]={"zero","one","two","three","four","five","six","seven"," 阅读全文
posted @ 2022-07-18 14:34
qwasdasd
阅读(18)
评论(0)
推荐(0)
摘要:
易错点 测试点1或其他测试点错了,可以尝试用下面这个数据测试: 3 2 02 1 03 01 1 02 代码 #include <iostream> #include <cstdio> using namespace std; int p[101]={-1};//记录每个点的父母结点的id int 阅读全文
posted @ 2022-07-18 14:16
qwasdasd
阅读(83)
评论(0)
推荐(0)
摘要:
关键 这道题必须掌握Dijkstra算法的实现代码,在Dijkstra算法模板代码的基础上进行一定调整 易错点 测试点0或其他测试点错了,可以尝试用下面这个数据测试: 4 5 0 3 1 4 1 2 0 1 1 0 2 2 0 3 4 1 2 1 2 3 2 代码 #include <iostrea 阅读全文
posted @ 2022-07-18 12:49
qwasdasd
阅读(57)
评论(0)
推荐(0)

浙公网安备 33010602011771号