摘要:
#include<bits/stdc++.h> using namespace std; int a[14]; int main() { int i, j = 1,n; for(i = 1; i <= 13; i ++) { n = 1; do { if(j > 13) j = 1; if(a[j] 阅读全文
摘要:
#include<bits/stdc++.h> using namespace std; class Dog { public: int age; double weight; Dog(int a, double b): age(a) , weight(b) { } Dog() { } } ; in 阅读全文
摘要:
#include<bits/stdc++.h> using namespace std; class Dog { public: int age; double weight; Dog(int a, double b): age(a) , weight(b) { } Dog() { } } ; in 阅读全文
摘要:
#include <iostream> #include <cmath> using namespace std; int main() { int x1,x2,x3,x4,x5; int a,b,c,d,e; double max=0.0,x; for(x5=0;x5<=2;x5++) { for 阅读全文
摘要:
#include<bits/stdc++.h> using namespace std; int main(){ long n, sum, i; while(cin >> n != EOF) { cout << "在之间的阶梯数为" << endl; sum = 0; for (i = 7; i < 阅读全文
摘要:
2.设计思路 ①依次列举出所有0~9的两位相同数字 ②在第一步的前提下依次列举出0~9的两位相同数字 ③将第一第二步中的四个数字组成的数进行开根,判断结果是否为整数后输出结果 #include<bits/stdc++.h> using namespace std; int main() { int 阅读全文
摘要:
#include<bits/stdc++.h> int main() { int t, a[5]; long int k, i; for(i = 95860; ; i++) { for(t = 0, k = 100000; k >= 10; t ++) { a[t] = (i % k) / (k / 阅读全文