随笔分类 -  POJ

摘要:#include<iostream> #include<cstring> #include<cstdio> using namespace std; int row,col,n,k; int idx[26][26],ansx[900],ansy[900]; void print(){ printf( 阅读全文
posted @ 2021-08-04 20:46 智人心 阅读(69) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> #include<cstring> #include<cstdio> using namespace std; char c[10][20]; int data[10][20],idx[10][20],k,score; struct Node{ int x,y, 阅读全文
posted @ 2021-08-03 21:26 智人心 阅读(35) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> #include<algorithm> #include<cstring> #include<cstdio> using namespace std; const int maxn = 105; int a[maxn][maxn][2]; int n,data[ 阅读全文
posted @ 2021-08-03 15:08 智人心 阅读(50) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> #include<algorithm> #include<cstdio> #include<cstring> using namespace std; int d[11],n,s,visit[50]; bool dfs(int num){ int i,j,wid 阅读全文
posted @ 2021-08-03 00:54 智人心 阅读(60) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> #include<cstring> #include<cstdio> using namespace std; const int maxn = 65; int d[10],p[10]; char a[maxn]; int t[maxn]; bool flag; 阅读全文
posted @ 2021-08-02 00:43 智人心 阅读(36) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> #include<cstdio> using namespace std; int main(){ int m,t,u,f,d,n,l[3],tmp,i,ans,sum; char a; scanf("%d%d%d%d%d",&m,&t,&u,&f,&d); l 阅读全文
posted @ 2021-08-01 23:49 智人心 阅读(26) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> #include<cstdio> #include<cmath> using namespace std; const double PI = 3.141592653589; int main(){ double w,h,v1,v2,v3,v4,x; while 阅读全文
posted @ 2021-08-01 20:53 智人心 阅读(32) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> #include<algorithm> #include<cstdio> using namespace std; const int maxn = 505; int n; int a[maxn][maxn],b[maxn][maxn],c[maxn][maxn 阅读全文
posted @ 2021-08-01 17:09 智人心 阅读(41) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> #include<cmath> #include<cstring> #include<cstdio> #include<algorithm> #include<ctime> #define ll long long using namespace std; co 阅读全文
posted @ 2021-08-01 16:44 智人心 阅读(40) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> #include<cstring> #include<cstdio> using namespace std; int main(){ int c,l,m,len[10005],p1,p2,s1,s2; char lr[10005][10]; scanf("%d 阅读全文
posted @ 2021-08-01 13:22 智人心 阅读(30) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> #include<cstdio> using namespace std; int main(){ int ans,sum,c,n,data[1005]; double avg,per; scanf("%d",&c); while(c--){ scanf("%d 阅读全文
posted @ 2021-07-31 16:01 智人心 阅读(79) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> #include<cstdio> using namespace std; int main(){ int n,p,q,data[25]; while(scanf("%d",&n)==1){ p = q = 0; for(int i=0;i<n;i++) sca 阅读全文
posted @ 2021-07-31 11:39 智人心 阅读(56) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> #include<cstdio> using namespace std; int main(){ int n,x,y; while(scanf("%d",&n)&&n){ int a = ~(unsigned)0>>1; while(n--){ scanf(" 阅读全文
posted @ 2021-07-30 16:43 智人心 阅读(21) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> #include<cstdio> #include<cmath> #define PI 3.1415927 using namespace std; double a,b,c,tmp = acos(-1.0/2)*180/PI,x[4],y[4]; bool y 阅读全文
posted @ 2021-07-30 14:23 智人心 阅读(37) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> #include<cmath> #include<cstdio> using namespace std; int main(){ int n,a,b,c,d; char start[25][3],end[25][3]; scanf("%d",&n); for( 阅读全文
posted @ 2021-07-29 21:51 智人心 阅读(20) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> #include<cstring> #include<cstdio> using namespace std; int main(){ int i,j; bool flag = true; char data[1000]; int l = 0; while(ge 阅读全文
posted @ 2021-07-29 17:29 智人心 阅读(17) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> #include<cstdio> using namespace std; int main(){ int t,n,k,ans; scanf("%d",&t); while(t--){ scanf("%d",&n); if(n==1)printf("0\n"); 阅读全文
posted @ 2021-07-29 17:02 智人心 阅读(22) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> #include<cstdio> #include<ctime> int main(){ int t,n,ans,base; scanf("%d",&t); while(t--){ scanf("%d",&n); base = 5; ans = 0; while 阅读全文
posted @ 2021-07-29 16:00 智人心 阅读(17) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> #include<cstdio> using namespace std; #define ll long long int main(){ ll N,M,ans,i,q; while(scanf("%lld%lld",&N,&M)==2&&N){ ans = 阅读全文
posted @ 2021-07-29 13:27 智人心 阅读(32) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> #include<cstdio> using namespace std; int main(){ int n,data[31]; while(scanf("%d",&n)==1&&n){ for(int i=1;i<=n;i++){ scanf("%d",&d 阅读全文
posted @ 2021-07-29 12:03 智人心 阅读(19) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示