01 2020 档案
摘要:#define CLK_TCK 100 #include<stdio.h> int main() { int h,m,s; double c1,c2,c3; scanf("%lf %lf",&c1,&c2); c3=(c2-c1)/CLK_TCK; s=c3+0.5; h=s/3600; s=s%3
阅读全文
摘要:#include <iostream> using namespace std; int main() { int num[11]; int w=0,k=1; char result[55]; for(int i=0;i<10;i++) { cin>>num[i]; if(w==0&&num[i]!
阅读全文
摘要:#include <iostream> using namespace std; int main() { long long int a,b,c; int d,i=0; int num[32]; cin>>a>>b>>d; c=a+b; if(c==0) { cout<<"0"<<endl; re
阅读全文
摘要:#include <iostream> #include <string.h> using namespace std; int main() { char n[1002]; int num[11]; int c[11]={0}; int tmp; cin>>n; for(int i=0;i<=9;
阅读全文
摘要:#include <stdio.h> struct STUFF { double ku,price; double dan; }; int main() { int N,D; float income=0; struct STUFF stuff[1001]; scanf("%d %d",&N,&D)
阅读全文
摘要:#include <stdio.h> #include <vector> #include <algorithm> #include <string.h> #include <cmath> #include <stdlib.h> #include <iostream> using namespace
阅读全文
摘要:#include <iostream> using namespace std; int main() { int N; cin>>N; int w1=0,w2=0,w3=0; int ac=0,aj=0,ab=0; int bc=0,bj=0,bb=0; int ra,rb; char a,b;
阅读全文
摘要:https://blog.csdn.net/qq_37729102/article/details/81673910
阅读全文
摘要:#include <iostream> #include <string.h> #include <cmath> using namespace std; int main() { char a[11],b[11]; char da,db; int ca=0,cb=0; int numa=0,num
阅读全文
摘要:strcmp(str1,str2),若str1=str2,则返回零;若str1<str2,则返回负数;若str1>str2,则返回正数 通过 #include <iostream> #include <string.h> #include <cmath> #include <vector> #inc
阅读全文
摘要:#include <iostream> #include <string.h> #include <cmath> using namespace std; int main() { char a[61],b[61],c[61],d[61]; int w=0,w1=0,h=0,m; cin>>a>>b
阅读全文
摘要:#include <iostream> #include <string.h> #include <cmath> using namespace std; int main() { int m,n,count=0,w=0,c = 0; cin>>m>>n; for(int i=2;i<500000;
阅读全文
摘要:#include <stdio.h> #include <string.h> int main() { int n; int num[1001]; int a1=0,c1=0,a2=0,c2=1,a3=0,a5=0,c5=0; double a4=0,c4=0; scanf("%d",&n); fo
阅读全文
摘要:#include <iostream> #include <string.h> #include <cmath> using namespace std; int main() { int T; long long int a,b,c; cin>>T; for(int i=0;i<T;i++) {
阅读全文
摘要:判断读取数据结束用scanf()!=EOF #include <stdio.h> #include <string.h> int main() { int a,b; int sign=0,w=0; while(scanf("%d %d",&a,&b)!=EOF) { if(b==0&&sign==0
阅读全文
摘要:#include <iostream> #include <string.h> #include <cmath> using namespace std; int main() { char buf[100]; int pos[80]; cin.getline(buf,85); int j=1; p
阅读全文
摘要:#include <iostream> #include <cmath> using namespace std; int main() { int n,m; cin>>n>>m; int num[101]; for(int i=0;i<n;i++) cin>>num[i]; m = m%n; in
阅读全文
摘要:#include <iostream> #include <cmath> using namespace std; int main() { int n,count = 0,before = 2,w=0; cin>>n; for(int i=2;i<=n;i++) { w=0; for(int j=
阅读全文
摘要:#include <iostream> using namespace std; int main() { int n,a=-1,b=-1,c=-1; cin>>n; if(n>0) { a=n%10; n=n/10; if(n>0) { b=n%10; n=n/10; } if(n>0) { c=
阅读全文
摘要:memset(mark,-1,sizeof(mark));对每个输入的数,将它所包含的数标志置1,本身标志置0.最后输出所有标志为0的数。 #include <iostream> using namespace std; int main() { int k,flag=0; cin>>k; int
阅读全文
摘要:结构体数组的定义和使用 struct STU { char sname[10]; char sno[10]; int grade; }; struct STU stu[101]; #include <iostream> using namespace std; struct STU { char s
阅读全文
摘要:'\0' : 字符串结束标识符,也是空字符,ascii码为00 APAT-YES APAATA-NO,因为c为空字符,即字符串结束。 APAATAA-NO #include <iostream> using namespace std; int main() { int n,i; int sign
阅读全文
摘要:#include <iostream> #include <cstring> using namespace std; int main() { char num[101]; char out[11][10] = {"ling","yi","er","san","si","wu","liu","qi
阅读全文
摘要:#include <iostream> using namespace std; int main() { int n,step=0; cin>>n; while(n!=1) { if(n%2==0) n=n/2; else n=(3*n+1)/2; step++; } cout<<step<<en
阅读全文

浙公网安备 33010602011771号