摘要: 1 #include 2 #include 3 using namespace std; 4 5 int main(){ 6 7 int n; 8 while (cin >> n){ 9 int ans = 0; 10 while (n != 1){ 11 if (n % 2 == 0) 1... 阅读全文
posted @ 2018-03-06 21:54 ouyang_wsgwz 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 using namespace std; 4 5 int main(){ 6 int n, m; 7 while (cin >> n >> m){ 8 int ans = 0; 9 for (int i = 2; i <= n; i++){ 10 ans... 阅读全文
posted @ 2018-03-06 21:36 ouyang_wsgwz 阅读(137) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 #include 4 using namespace std; 5 6 int main(){ 7 string a; 8 while (cin >> a){ 9 int i, j, max = 0, num[10] = { 0 }; 10 for (i = 0; imax)... 阅读全文
posted @ 2018-03-06 21:25 ouyang_wsgwz 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 #include 4 using namespace std; 5 6 string a = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"; 7 string b = "VWXYZABCDEFGHIJKLMNOPQRSTU"; 8 9 int main(){ 10 11 string s; 12 ... 阅读全文
posted @ 2018-03-06 21:21 ouyang_wsgwz 阅读(133) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 7 const int maxn = 10000 + 5; 8 char a[maxn], b[maxn]; 9 int s[30]; 10 11 int main(){ 12 13 while (~scanf("%s ... 阅读全文
posted @ 2018-03-06 20:57 ouyang_wsgwz 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 这问题又是一道大数的题目,学好python真重要,这是python2.7.3 阅读全文
posted @ 2018-03-06 20:44 ouyang_wsgwz 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 using namespace std; 4 5 int main(){ 6 int n, a, b; 7 while (cin >> a >> b >> n){ 8 int Integer = a / b; 9 cout << Integer << "."; 10 ... 阅读全文
posted @ 2018-03-06 19:30 ouyang_wsgwz 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 用python真是很简单,直接排序,然后判断a+b是否大于c,python在处理大数的时候,会自己转化为高精度运算 阅读全文
posted @ 2018-03-06 14:21 ouyang_wsgwz 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 using namespace std; 4 5 int main(){ 6 long long n; 7 while (cin >> n){ 8 if (n == 0){ 9 //cout = 1; i--){ 14 ans = (ans + ... 阅读全文
posted @ 2018-03-06 13:38 ouyang_wsgwz 阅读(175) 评论(0) 推荐(0) 编辑