随笔分类 - pat
摘要:输出格式:排名 科目代号(优先按照排 #include <iostream> #include <algorithm> #include <vector> using namespace std; const int INF = 0x3fffffff; int n,f; struct student
阅读全文
摘要:1 #include <iostream> 2 #include <cstdio> 3 #include <cmath> 4 5 void betAns(char c[], int n,int index); 6 int main() { 7 //std::cout << "Hello, World
阅读全文
摘要:#include <cstdio> #include <cstring> #include <cctype> #include <algorithm> using namespace std; typedef long long LL; struct bign { int len; int d[30
阅读全文
摘要:https://blog.csdn.net/a845717607/article/details/86530433 map使用: 声明:map<键,值> 变量名; 存储: scanf("%d %lf",&e,&coe); mp1[e]=coe; 遍历:for(map<int,double>::ite
阅读全文
摘要:#include <iostream> #include <cstdio> #include <cstring> int main() { //std::cout << "Hello, World!" << std::endl; int n , tmp=0, floor,ans=0; scanf("
阅读全文
摘要:#include <iostream> #include <cstdio> #include <cstring> const int maxn = 10050; struct node { int start,end; int sum; int value; }dp[maxn]; int main(
阅读全文
摘要:1 #include <iostream> 2 #include <cstdio> 3 #include <cstring> 4 const int maxn = 110; 5 bool compare(int a[],int b[]){//a小于b返回真,否则返回假 6 if(a[0]!=b[0]
阅读全文