随笔分类 -  水题

摘要:#include<iostream> #include<cstdio> #include<cstring> using namespace std; int gcd(int a,int b){ int t; if(a==0)return b; while(b){ t = a%b; a = b; b 阅读全文
posted @ 2021-08-10 21:19 智人心 阅读(22) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> #include<cstdio> #include<algorithm> using namespace std; int main(){ int i,t,n,data[1005],ans,x,y; scanf("%d",&t); while(t--){ sca 阅读全文
posted @ 2021-08-05 19:23 智人心 阅读(91) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> #include<algorithm> #include<cstring> #include<cstdio> using namespace std; int main(){ char data[205]; scanf("%s",data); int len = 阅读全文
posted @ 2021-08-05 14:57 智人心 阅读(28) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> #include<algorithm> #include<cstdio> using namespace std; int main(){ long long n,i,data[20005],p,q,sum; scanf("%lld",&n); for(i=0; 阅读全文
posted @ 2021-08-04 17:37 智人心 阅读(64) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> #include<cstring> #include<cstdio> using namespace std; int main(){ int row,col,start,i,j,data[15][15],step,s1,s2; char c[15][15]; 阅读全文
posted @ 2021-08-04 16:22 智人心 阅读(20) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> #include<cmath> #include<cstdio> #include<cstring> using namespace std; #define ld long double int main(){ double n,p; while(scanf( 阅读全文
posted @ 2021-08-04 10:49 智人心 阅读(16) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> #include<cstdio> #include<cstring> using namespace std; int main(){ int s,len,p,i,j,k; char n[10],d[25][100]; while(scanf("%d%s",&s 阅读全文
posted @ 2021-08-02 11:48 智人心 阅读(23) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> #include<cstring> #include<cstdio> using namespace std; int main(){ int i,j,k,len[10],p,kase=1; char a[15],d[10][15]; bool flag,fla 阅读全文
posted @ 2021-08-02 10:26 智人心 阅读(20) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> #include<algorithm> using namespace std; struct Node{ int id,a1,a2; }vote[50005]; bool cmp(struct Node v1,struct Node v2){ return v 阅读全文
posted @ 2021-08-01 22:23 智人心 阅读(42) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> #include<algorithm> #include<cstdio> using namespace std; int main(){ int n,s,ans,data[20005]; scanf("%d%d",&n,&s); for(int i=0;i<n 阅读全文
posted @ 2021-08-01 22:02 智人心 阅读(25) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> #include<algorithm> #include<cstdio> using namespace std; bool cmp(int a,int b){ return a>b; } int main(){ int t,n,a[20005]; scanf( 阅读全文
posted @ 2021-08-01 21:55 智人心 阅读(24) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> #include<cmath> #include<cstdio> using namespace std; int main(){ double n,k,s,t,r,s1,sum,turn,ans; scanf("%lf%lf",&n,&k); while(k- 阅读全文
posted @ 2021-08-01 21:37 智人心 阅读(21) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> #include<cstdio> using namespace std; int main(){ int n,seed,d[20][20]; scanf("%d%d",&n,&seed); for(int j=0;j<n;j++){ for(int i=0;i 阅读全文
posted @ 2021-08-01 00:28 智人心 阅读(26) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> #include<cmath> #include<cstdio> using namespace std; int main(){ int b,n,i,d,di,p,t; while(scanf("%d%d",&b,&n)==2&&b){ di = 1; i = 阅读全文
posted @ 2021-07-31 23:50 智人心 阅读(25) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> #include<cstring> #include<cstdio> using namespace std; int main(){ char a[10],b[10]; int len,p; while(gets(a)){ puts(a); } return 阅读全文
posted @ 2021-07-31 23:16 智人心 阅读(21) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> #include<cmath> #include<cstdio> using namespace std; #define PI 3.1415927 int main(){ int n; double D,d,s,tmp; scanf("%d",&n); for 阅读全文
posted @ 2021-07-31 22:35 智人心 阅读(9) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> #include<cstdio> using namespace std; int main(){ long long n,m,i,ans; scanf("%lld",&i); for(int kase=1;kase<=i;kase++){ scanf("%ll 阅读全文
posted @ 2021-07-31 22:20 智人心 阅读(14) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> #include<cmath> #include<cstring> #include<cstdio> using namespace std; int main(){ char a[50],b[50]; int sa[30],sb[30]; int n,kase 阅读全文
posted @ 2021-07-31 22:07 智人心 阅读(20) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> #include<cstdio> using namespace std; int main(){ int l,m,s,e,ans; while(scanf("%d%d",&l,&m)==2&&l){ ans = l+1; while(m--){ scanf(" 阅读全文
posted @ 2021-07-31 21:43 智人心 阅读(12) 评论(0) 推荐(0) 编辑
摘要:#include<iostream> #include<cmath> #include<cstdio> using namespace std; int main(){ long long n,x,y,s,n1,ans; scanf("%lld",&n); while(n--){ scanf("%l 阅读全文
posted @ 2021-07-31 21:35 智人心 阅读(23) 评论(0) 推荐(0) 编辑

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