摘要: #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 阅读全文
posted @ 2020-01-22 10:48 QRain 阅读(110) 评论(0) 推荐(0)
摘要: strcmp(str1,str2),若str1=str2,则返回零;若str1<str2,则返回负数;若str1>str2,则返回正数 通过 #include <iostream> #include <string.h> #include <cmath> #include <vector> #inc 阅读全文
posted @ 2020-01-22 10:39 QRain 阅读(151) 评论(0) 推荐(0)
摘要: #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 阅读全文
posted @ 2020-01-22 08:40 QRain 阅读(137) 评论(0) 推荐(0)
摘要: #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; 阅读全文
posted @ 2020-01-21 12:16 QRain 阅读(217) 评论(0) 推荐(0)
摘要: #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 阅读全文
posted @ 2020-01-21 11:40 QRain 阅读(152) 评论(0) 推荐(0)
摘要: #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++) { 阅读全文
posted @ 2020-01-21 09:27 QRain 阅读(124) 评论(0) 推荐(0)
摘要: 判断读取数据结束用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 阅读全文
posted @ 2020-01-21 09:11 QRain 阅读(131) 评论(0) 推荐(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 阅读全文
posted @ 2020-01-21 08:42 QRain 阅读(75) 评论(0) 推荐(0)
摘要: #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 阅读全文
posted @ 2020-01-20 18:03 QRain 阅读(126) 评论(0) 推荐(0)
摘要: #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= 阅读全文
posted @ 2020-01-20 17:29 QRain 阅读(106) 评论(0) 推荐(0)