摘要: #include<iostream> #include<cstring> using namespace std; int data[150],len; void multiply(int tmp){ int i,j; for(i=0;i<len;i++){ data[i] *= tmp; } fo 阅读全文
posted @ 2021-11-17 22:08 智人心 阅读(32) 评论(0) 推荐(0)
摘要: /* Sample Input 1 2 3 0 ; three different stamp types 7 4 0 ; two customers 1 1 0 ; a new set of stamps (two of the same type) 6 2 3 0 ; three custome 阅读全文
posted @ 2021-11-17 17:02 智人心 阅读(36) 评论(0) 推荐(0)
摘要: #include<iostream> using namespace std; int main(){ int n,i,j,p,q,t; while(scanf("%d",&n)==1){ for(i=1;;i++){ if(i*(i+1)/2>=n){ break; } } t = i*(i+1) 阅读全文
posted @ 2021-11-17 12:30 智人心 阅读(32) 评论(0) 推荐(0)
摘要: #include<iostream> #include<cstring> using namespace std; int main(){ char a[100005],b[100005]; int i,j,len_a,len_b; while(scanf("%s%s",a,b)==2){ len_ 阅读全文
posted @ 2021-11-17 10:54 智人心 阅读(29) 评论(0) 推荐(0)
摘要: #include<iostream> using namespace std; int main(){ int i,s = 0,n; scanf("%d",&n); for(i=1;;i++){ s += i; if(s==n)break; if(s-n>0&&(s-n)%2==0)break; } 阅读全文
posted @ 2021-11-17 10:46 智人心 阅读(34) 评论(0) 推荐(0)
摘要: #include<iostream> using namespace std; #define PI 3.1415927 int main(){ double ans_d,ans_mph,d,t; int r,cnt = 0; while(scanf("%lf%d%lf",&d,&r,&t)==3& 阅读全文
posted @ 2021-11-17 10:37 智人心 阅读(32) 评论(0) 推荐(0)