09 2016 档案
摘要:#include <iostream>using namespace std;int main(){ int n; int i = 0; cin >> n; if (n == 1) { cout << "0" << endl; exit(0); } else { B:if (n % 2 == 0)
阅读全文
摘要:#include <iostream>using namespace std;#include <cmath>int main(){ int n, t, i, j; int num; int s; cin >> n; t = n; num = 0, s = 0; for (i = 2; i <= s
阅读全文
摘要:#include <iostream> using namespace std; struct student { char num[20]; int shi; int kao; }; int main() { student stu[1000]; int n, q, b[1000]; cin >>
阅读全文
摘要:#include <iostream> #include <string> #include <algorithm> using namespace std; int a[10]={0}; string s; int main() { cin>>s; int i; for(i = 0; i < s.
阅读全文
摘要:#include<iostream>using namespace std;int main(){ int a,b,c,m; cin >> a >> b >> c; if (a < b) { if (c > b) cout << a << "->" << b << "->" << c << endl
阅读全文
摘要:#include<iostream>using namespace std;int main(){ int a, i, k, j, n1,n2; int b = 7; int n = 3; char ch; cin >> a >> ch; if (a < 7) { cout << ch << end
阅读全文
摘要:#include <cstdio>#include <iostream> using namespace std; int num[1004];int rest[1004]; void preHandle(){ int sum = 1; int cnt = 1; for (int i = 1; i
阅读全文