摘要:
思路: 水题,略过 Tip: 这题没想到很多人都错了,这里有两个容易错的点需要注意: (0 表示的是这个位置上的数字初始时就能看见了,而不是彩票上的数字为 0。)这句话特意标黑了,意思是1-9这九个数都出现仅出现一次,如果1-8出现了,那么这个0的位置代表9这个数字 翻开不翻开数字是不会变化的!我队 阅读全文
摘要:
思路: 水题,略过 Tip: 无 #include <bits/stdc++.h> using namespace std; typedef long long ll; int main() { int n, m; cin >> n >> m; ll len = pow(2, n); string 阅读全文
摘要:
思路: 水题,略过 Tip: 这题我看好多人用的暴力,这里推荐一下string里的find函数,很方便 #include <bits/stdc++.h> using namespace std; int main() { string s; int n = 0; int num = 0; int i 阅读全文
摘要:
思路: 水题,略过 Tip: 无 #include <bits/stdc++.h> using namespace std; int a[5]; int di, yu, maxx; int indexx; int main() { bool flag1 = false; bool flag2 = f 阅读全文
摘要:
思路: 水题,略过 Tip: 注意for循环中不要cin读入double数组,队友亲自实验读入数组会WA测试点2 #include <bits/stdc++.h> using namespace std; int main() { double n; double ans = 0; cin >> n 阅读全文
摘要:
思路: 水题,略过 Tip: 无 #include <bits/stdc++.h> using namespace std; int main() { double a, b, c; cin >> a >> b >> c; if (b == 0) { a *= 2.455; printf("%.2l 阅读全文
摘要:
思路: 水题,略过 Tip: 无 #include <bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; cout << a * b * c << endl; return 0; } 阅读全文
摘要:
思路: 水题,略过 Tip: 无 #include <bits/stdc++.h> using namespace std; int main() { cout << "Talk is cheap. Show me the code." << endl; return 0; } 阅读全文
摘要:
L1-1 嫑废话上代码 (5分)L1-2 猫是液体 (5分)L1-3 洛希极限 (10分)L1-4 调和平均 (10分) L1-5 胎压监测 (15分)L1-6 吃火锅 (15分)L1-7 前世档案 (20分)L1-8 刮刮彩票 (20分) L2-1 简单计算器 (25分)L2-2 口罩发放 (25 阅读全文