上一页 1 ··· 6 7 8 9 10 11 12 下一页
摘要: Codeforces Round 870 (Div. 2) A - Trust Nobody 思路:枚举每一种说谎人数x,若a[i]大于x则说谎人数加一,判断最后说谎总人数是否为x,若是则输出x,结束枚举;若没有满足的x则-1 #include<bits/stdc++.h> using namesp 阅读全文
posted @ 2023-05-06 21:22 bible_w 阅读(44) 评论(0) 推荐(0) 编辑
摘要: 康托展开和逆康托展开 康托展开和逆康托展开(转) - Sky丨Star - 博客园 (cnblogs.com) 康托展开表示的就是是当前排列组合在n个不同元素的全排列中的名次 逆康托展开则是由名次得出该名次的排列组合 公式:康托展开值X=a[n]*(n-1)!+a[n-1]*(n-2)!+...+a 阅读全文
posted @ 2023-05-05 09:41 bible_w 阅读(21) 评论(0) 推荐(0) 编辑
摘要: SMU Spring 2023 Contest Round 1 B - Contest Preparation 思路:特判下m大于n的情况,只有make后才能validate #include<bits/stdc++.h> using namespace std; typedef pair<int, 阅读全文
posted @ 2023-05-04 10:06 bible_w 阅读(13) 评论(0) 推荐(0) 编辑
摘要: Codeforces Round 867 (Div. 3) A - TubeTube Feed #include<bits/stdc++.h> using namespace std; typedef pair<int,int>PII; typedef pair<string,int>PSI; co 阅读全文
posted @ 2023-04-27 20:21 bible_w 阅读(22) 评论(0) 推荐(0) 编辑
摘要: SMU Spring 2023 Trial Contest Round 10 A - Remove Duplicates #include<bits/stdc++.h> using namespace std; typedef pair<int,int>PII; typedef pair<strin 阅读全文
posted @ 2023-04-25 23:46 bible_w 阅读(5) 评论(0) 推荐(0) 编辑
摘要: SMU Spring 2023 Trial Contest Round 9 A - Wrong Subtraction #include<bits/stdc++.h> using namespace std; typedef pair<int,int>PII; typedef pair<string 阅读全文
posted @ 2023-04-23 17:20 bible_w 阅读(6) 评论(0) 推荐(0) 编辑
摘要: 西南民族大学 2023 天梯自主训练 4 多项式A除以B 思路:a表示被除多项式,b表示除数多项式,一次运算的商的项p为a的最高项-b的最高项,商的系数q为a的最高项的系数除以b的最高项的系数,将所有a中项数和b的项数乘p后相同的系数减去b项的系数乘q(...haoluan...看图吧) #incl 阅读全文
posted @ 2023-04-20 20:25 bible_w 阅读(11) 评论(0) 推荐(0) 编辑
摘要: 西南民族大学 2023 天梯自主训练 3 正整数A+B #include<bits/stdc++.h> using namespace std; typedef pair<int,int>PII; const int N=1e3+5,INF=0x3f3f3f3f,Mod=1e6; const dou 阅读全文
posted @ 2023-04-19 22:01 bible_w 阅读(9) 评论(0) 推荐(0) 编辑
摘要: 西南民族大学 春季 2023 训练赛 8 嫑废话上代码 #include<bits/stdc++.h> using namespace std; typedef pair<int,int>PII; typedef pair<string,int>PSI; const int N=2e2+5,INF= 阅读全文
posted @ 2023-04-18 22:02 bible_w 阅读(11) 评论(0) 推荐(0) 编辑
摘要: 西南民族大学 春季 2023 训练赛 6-补题 今天我要赢 #include<bits/stdc++.h> using namespace std; typedef pair<int,int>PII; const int N=1e3+5,M=525605,INF=0x3f3f3f3f,Mod=1e6 阅读全文
posted @ 2023-04-13 09:58 bible_w 阅读(12) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 下一页