摘要:
#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"}... 阅读全文
摘要:
#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... 阅读全文
摘要:
#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... 阅读全文
摘要:
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 阅读全文