摘要: #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)