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) 阅读全文
posted @ 2016-09-13 20:01 code666 阅读(350) 评论(0) 推荐(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 阅读全文
posted @ 2016-09-05 23:57 code666 阅读(185) 评论(0) 推荐(0)
摘要:#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 >> 阅读全文
posted @ 2016-09-04 22:13 code666 阅读(201) 评论(0) 推荐(0)
摘要:#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. 阅读全文
posted @ 2016-09-04 07:56 code666 阅读(124) 评论(0) 推荐(0)
摘要:#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 阅读全文
posted @ 2016-09-03 22:19 code666 阅读(167) 评论(0) 推荐(0)
摘要:#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 阅读全文
posted @ 2016-09-03 16:58 code666 阅读(129) 评论(0) 推荐(0)
摘要:#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 阅读全文
posted @ 2016-09-03 12:17 code666 阅读(137) 评论(0) 推荐(0)