Coder

舒心、快乐,比什么都重要

摘要: #include #include #include using namespace std; int main(){ int sum = 0; string num; stacknumber; string str[10] = {"ling", "yi", "er", "san", "si", "wu", "liu", "qi", "ba", "jiu"}... 阅读全文
posted @ 2019-04-15 21:05 H123K 阅读(115) 评论(0) 推荐(0) 编辑
摘要: #include using namespace std; int main(){ int n, count = 0; cin >> n; while (n != 1){ if (n % 2 != 0) n = (3 * n + 1) / 2; else n /= 2; co... 阅读全文
posted @ 2019-04-15 18:50 H123K 阅读(151) 评论(0) 推荐(0) 编辑
摘要: #include #include using namespace std; int baoshi[10500]; //数组要开的大一点儿不然一直wa; int main(){ int t, n, a, b, i, cnt, count, k = 1; cin >> t; while (t--){ count = 0; memset(b... 阅读全文
posted @ 2019-04-15 18:39 H123K 阅读(142) 评论(0) 推荐(0) 编辑
摘要: 1 #include <iostream> 2 using namespace std; 3 int main(){ 4 int t, n, m, x, tmp = 0;; 5 cin >> t; 6 while (t--){ 7 cin >> n >> m; 8 for (int i = 0; i 阅读全文
posted @ 2019-04-15 12:04 H123K 阅读(144) 评论(0) 推荐(0) 编辑