编程练习
我不太难:
这个作者很懒,什么都没留下…
展开
-
web作业—简历信息管理系统
引言:本系统基于IDEA和Tomcat开发,采用HTML+CSS+JS+Servlet+JSP+Mysql等技术实现了用户区分、权限设置、注册登录、修改密码、简历信息的增删改查和导入导出Excel文件等功能。成果展示登录/注册/修改密码页面 管理员页面普通用户页面...原创 2021-05-31 23:04:05 · 388 阅读 · 8 评论 -
csp邻域均值
题目链接#include <bits/stdc++.h>using namespace std;int n,l,r,t;long long res = 0;int a[605][605];long long sum[605][605] = {0};int fun(int xl,int xr,int yl,int yr){ int x = xr - xl + 1,y = yr - yl + 1; long long cnt = 0; long long原创 2021-04-22 22:28:32 · 817 阅读 · 1 评论 -
cspZ字形扫描
题目链接#include <iostream>#include <vector>using namespace std;int n;int main() { cin>>n; int a[n][n]; for (int i = 0; i < n; ++i) { for (int j = 0; j < n; ++j) { cin>>a[i][j]; }原创 2021-04-11 00:34:11 · 111 阅读 · 1 评论 -
csp数字排序
题目链接#include <iostream>#include <map>#include <vector>#include <algorithm>using namespace std;int n;map<int,int>mp;map<int,int>::iterator it;pair<int,int>h[1005];vector<int>vec;int cmp(pair<原创 2021-04-10 23:33:02 · 212 阅读 · 0 评论 -
csp日期计算
题目链接#include <iostream>#include <map>using namespace std;int a[366];map<int,int>mp;int y,t;bool isR(int year){ if(( year%4 == 0 && year%100 != 0) || ( year % 400 == 0) ) return true; else return fa原创 2021-04-10 23:31:02 · 253 阅读 · 0 评论 -
csp消除类游戏
题目链接#include <bits/stdc++.h>using namespace std;int n,m;int a[100][100];int length(int i,int j){ int lll = 1; for (int k = j; k < m-1; ++k) { if(a[i][k] == a[i][k+1]) lll++; else break;原创 2021-04-10 23:28:45 · 69 阅读 · 0 评论 -
csp火车购票
题目链接#include <bits/stdc++.h>using namespace std;int n;int cmd;int main(){ cin>>n; vector<int>site[20]; for (int i = 0,j = 1; j < 101; ++j) { site[i].push_back(j); if(j % 5 == 0) i++;原创 2021-04-10 23:22:52 · 101 阅读 · 0 评论 -
csp工资计算
题目链接#include<iostream>using namespace std;int S;int T;int main(){ cin>>T; if (T <= 3500) S = T; else if (T <= 4955) S = (T - 3500) / 97 * 100 + 3500; else if (T <= 7655) S = (T - 4955) /原创 2021-04-10 23:17:58 · 93 阅读 · 0 评论 -
csp小明放学
题目链接!!!注意40%以上的数据会爆int,所以用long long#include <iostream>using namespace std;int n;long long sum;int r,y,g;int circle;int nowTime(int b){ long long ti = (sum + b) % circle; long long ndt = 0; if(ti < y + r) ndt = r + y原创 2021-04-10 21:40:40 · 95 阅读 · 2 评论 -
csp公共钥匙盒
题目链接#include <bits/stdc++.h>using namespace std;int N,K;int key[2010] = {0};pair<int,int>startT[2010],endT[2010];pair<pair<int,bool>,int>a[2010];set<int>st;int j = 0,stime = 0,etime = 0;int cmp(pair<pair<int原创 2021-04-10 20:12:43 · 65 阅读 · 0 评论 -
csp游戏
题目链接#include <bits/stdc++.h>using namespace std;int n,k;int main() { cin>>n>>k; map<int,bool>baby; int num = 0; for (int i = 0; i < n; ++i) baby[i] = true; int index = 0; int sum = n; while原创 2021-04-10 20:12:12 · 163 阅读 · 0 评论 -
csp碰撞的小球
题目链接#include <bits/stdc++.h>using namespace std;int n,l,t;void re(bool &a){ if (a) a = false; else a = true;}void judge(pair<int,bool>a[]){ for (int i = 0; i < n; ++i) { for (int j = i+1; j < n; ++j) {原创 2021-04-09 21:36:11 · 73 阅读 · 0 评论 -
csp买菜
题目链接#include <bits/stdc++.h>using namespace std;int n;int time(pair<int,int>a,pair<int,int>b){ if(a.second<=b.first || b.second<=a.first) return 0; else if(a.first <= b.first && a.second >= b.se原创 2021-04-09 21:31:54 · 83 阅读 · 0 评论 -
csp二十四点
题目链接#include <iostream>using namespace std;int n;int main() { ios::sync_with_stdio(false); cin>>n; string str; int num[4]; long long sum; string op = " "; while (n--){ cin>>str; sum =原创 2021-04-09 21:24:06 · 76 阅读 · 0 评论 -
csp小明种苹果(续)
题目链接#include <bits/stdc++.h>using namespace std;int n,m,x,e;long long sum;int main(){ cin>>n; sum = 0; e = 0; map<int,int>cnt; set<int>st; for(int j=0;j<n;++j){ cin>>m; int原创 2021-04-09 21:20:11 · 50 阅读 · 0 评论 -
csp回收站选址
题目链接#include <iostream>#include <map>using namespace std;int n;int score[5] = {0};int select(map< pair<int,int> , int>mp,pair<int,int>h){ int sum = 0; pair<int,int>t[4]; t[0].first = h.first + 1;原创 2021-04-09 21:17:30 · 57 阅读 · 0 评论 -
csp稀疏向量
题目链接#include <iostream>#include <map>using namespace std;int main() { ios::sync_with_stdio(false); int n,a,b; cin>>n>>a>>b; long long sum = 0; map<int,int>mp; int x,y; for (int i = 0;原创 2021-04-09 21:11:38 · 143 阅读 · 0 评论 -
csp风险人群筛查
题目链接#include <iostream>#include <set>using namespace std;int n,k,t,xl,yl,xr,yr;set<int>st;int main(){ int x,y,count,res = 0; cin>>n>>k>>t>>xl>>yl>>xr>>yr; for (int i = 0; i &原创 2021-04-09 21:00:56 · 75 阅读 · 0 评论 -
csp称检测点查询
题目链接#include <bits/stdc++.h>using namespace std;int n;int x,y;int cmp(pair<pair<int,int>,int>&a,pair<pair<int,int>,int>&b){ int s1 = (a.first.first - x) * (a.first.first - x) + (a.first.second - y) * (a.f原创 2021-04-09 20:54:52 · 68 阅读 · 0 评论 -
csp期末预测之最佳阈值
题目链接#include <bits/stdc++.h>using namespace std;int cmp(pair<int,int>&a,pair<int,int>&b){ if(a.first == b.first) return a.second<b.second; return a.first < b.first;}int cmp1(pair<int,int>&a原创 2021-04-09 20:39:36 · 249 阅读 · 0 评论