摘要: #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 智人心 阅读(33) 评论(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 智人心 阅读(29) 评论(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 智人心 阅读(16) 评论(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 智人心 阅读(25) 评论(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 智人心 阅读(33) 评论(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 智人心 阅读(23) 评论(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 智人心 阅读(35) 评论(0) 推荐(0)
摘要: #include<iostream> #include<cstdio> using namespace std; int main(){ int k1,k2,k3,a[3]; while(scanf("%d%d%d",&k1,&k2,&k3)==3){ a[0] = k1-3*k2+3*k3; a[ 阅读全文
posted @ 2021-07-31 20:48 智人心 阅读(33) 评论(0) 推荐(0)
摘要: #include<iostream> #include<cstdio> using namespace std; int main(){ int a[3],pos; scanf("%d%d%d",&a[0],&a[1],&a[2]); bool flag = true; for(int i=0;i< 阅读全文
posted @ 2021-07-31 20:07 智人心 阅读(26) 评论(0) 推荐(0)
摘要: #include<iostream> #include<cstdio> using namespace std; int main(){ int n,m,p,c; while(scanf("%d%d%d%d",&n,&m,&p,&c)==4&&n)//真币数:m+c-p,亏损:n+c-(m+c-p) 阅读全文
posted @ 2021-07-31 19:58 智人心 阅读(31) 评论(0) 推荐(0)
摘要: #include<iostream> #include<cstring> #include<cstdio> using namespace std; int main(){ int n,kase = 1,pos,sum,len,i,v[3] = {9,3,7}; char d[10]; scanf( 阅读全文
posted @ 2021-07-31 17:08 智人心 阅读(31) 评论(0) 推荐(0)
摘要: #include<iostream> #include<cmath> #include<cstdio> using namespace std; #define PI 3.1415927 int main(){ double D,V,d; while(scanf("%lf%lf",&D,&V)==2 阅读全文
posted @ 2021-07-31 16:41 智人心 阅读(63) 评论(0) 推荐(0)
摘要: #include<iostream> #include<cmath> #include<cstdio> using namespace std; int main(){ unsigned R,M,Y; scanf("%u%u%u",&R,&M,&Y); unsigned ans = floor(po 阅读全文
posted @ 2021-07-31 16:24 智人心 阅读(31) 评论(0) 推荐(0)
摘要: #include<iostream> #include<algorithm> #include<cstdio> using namespace std; int main(){ int n,d[10005]; scanf("%d",&n); for(int i=0;i<n;i++) scanf("% 阅读全文
posted @ 2021-07-31 16:10 智人心 阅读(36) 评论(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 智人心 阅读(93) 评论(0) 推荐(0)
摘要: #include<iostream> #include<cstring> #include<cstdio> using namespace std; int main(){ int p; char a[10]; int s=0,e=11; while(true){ scanf("%d",&p); i 阅读全文
posted @ 2021-07-31 15:43 智人心 阅读(38) 评论(0) 推荐(0)
摘要: #include<iostream> #include<cstdio> using namespace std; int main(){ int s,d,p,q,n; scanf("%d",&n); while(n--){ scanf("%d%d",&s,&d); if(d>s||(s-d)%2== 阅读全文
posted @ 2021-07-31 15:20 智人心 阅读(14) 评论(0) 推荐(0)
摘要: #include<iostream> #include<cstdio> using namespace std; int main(){ long long n,k,i,j,sum; while(scanf("%lld%lld",&n,&k)==2&&n){ if(n-k<k){ k = n-k; 阅读全文
posted @ 2021-07-31 15:11 智人心 阅读(37) 评论(0) 推荐(0)
摘要: #include<iostream> #include<cstdio> using namespace std; #define PI 3.141592653589793 #include<cmath> int main(){ double x1,y1,x2,y2,x3,y3; double k1, 阅读全文
posted @ 2021-07-31 14:38 智人心 阅读(36) 评论(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 智人心 阅读(68) 评论(0) 推荐(0)
摘要: #include<iostream> #include<cstdio> using namespace std; bool test(int n){ int p,s1,s2,s3; s1 = s2 = s3 = 0; p = n; while(p>0){ s1 += p%10; p /= 10; } 阅读全文
posted @ 2021-07-31 10:21 智人心 阅读(39) 评论(0) 推荐(0)
摘要: #include<iostream> #include<cstdio> #include<cstring> using namespace std; int main(){ char a[15]; scanf("%s",a); int i,sum,pos; sum = 0; for(i=0;i<10 阅读全文
posted @ 2021-07-31 10:07 智人心 阅读(28) 评论(0) 推荐(0)