05 2023 档案
摘要:1. #include<iostream>using namespace std;int main(){ float a = 0;//开始 float b = 0;//结束 float c = 0;//每公里价格 cout << "请输入每公里的价格:"; cin >> c; cout << "MI
阅读全文
摘要:1. #include<iostream>#include<cstring>#include<algorithm>using namespace std;char tran(char c){ return (int)(c-'A'-4)>0?(c-5):(c+21);}string sd,str,ed
阅读全文
摘要:1. #include<bits/stdc++.h>using namespace std;int a[11],i;int main(){ for(i=1;i<=10;i++)cin>>a[i]; sort(a+1,a+10+1); for(i=10;i>=1;i--) if(a[i]%2!=0)c
阅读全文
摘要:1. #include <iostream>#include <vector> using namespace std; int n; void solve(){ cin >> n; vector<string> vec; for (int i = 0; i < n; i ++) { string
阅读全文
摘要:#include<iostream>#include<cstring>using namespace std;const int N=1010,mod=998244353;int g[N][N],min1[N][N],min2[N][N],max1[N][N],max2[N][N];int n,m,
阅读全文
摘要:#include<iostream> #include<fstream> using namespace std; class Dog{ public: int getdogage(){ return age; } int getdogweight(){ return weight; } void
阅读全文
摘要:1. #include<bits/stdc++.h>using namespace std;bool book[10000001];int prime[100001];int t=1;void Prime(int x){ memset(book,0,sizeof(book)); for(int i=
阅读全文
摘要:#include<iostream>#include<vector>using namespace std; bool cmp(vector<int> &A,vector<int> &B){ if(A.size()!=B.size()) return A.size()>B.size(); for(i
阅读全文
摘要:1. #include<bits/stdc++.h>using namespace std;int n,x,ans=0,sum=0,a[1001],b[1001];int main(){ memset(a,0,sizeof(a)); memset(b,0,sizeof(b)); n=10; for(
阅读全文
摘要:#include <iostream>#include <cstring>#include <algorithm>#include <vector>#include <unordered_set>#pragma GCC optimize(2)#pragma GCC optimize(3)#defin
阅读全文
摘要:1. #include <iostream>#include <cstring>#include <algorithm>#include <set> using namespace std; const int N = 1010; int t, n;int a[N], b[N];set<int> s
阅读全文
摘要:1. #include <iostream>#include <vector> using namespace std; int n; void solve(){ cin >> n; vector<string> vec; for (int i = 0; i < n; i ++) { string
阅读全文
摘要:1. #include <iostream>using namespace std; template <class T>class MyArray{public: bool check(); ~MyArray(); MyArray(int); void sort(); void display()
阅读全文
摘要:1. #include <iostream> using namespace std; int a[501][501]; int main(){ int n, sum = 0; cin >> n; for (int i = 1; i <= n; i++) for (int j = 1; j <= n
阅读全文