2021年9月5日

1010 一元多项式求导 (25 point(s))

摘要: // 19 points #include <bits/stdc++.h> using namespace std; int main(){ int k1, e1, first = 0; while(scanf("%d %d", &k1, &e1) != EOF){ int k2 = k1 * e1 阅读全文

posted @ 2021-09-05 22:23 Atl212 阅读(26) 评论(0) 推荐(0)

1008 数组元素循环右移问题 (20 point(s))

摘要: #include <bits/stdc++.h> using namespace std; int main(){ int n, m, num[101]; cin >> n >> m; for(int i = 0; i < n; i++){ cin >> num[i]; } for(int i = 阅读全文

posted @ 2021-09-05 21:57 Atl212 阅读(43) 评论(0) 推荐(0)

1009 说反话 (20 point(s))

摘要: #include <bits/stdc++.h> using namespace std; int main() { string str, tmp1 = "", tmp2; vector<string> v; getline(cin, str); for(auto s: str) { // 当字符 阅读全文

posted @ 2021-09-05 21:56 Atl212 阅读(30) 评论(0) 推荐(0)

1007 素数对猜想 (20 point(s))

摘要: #include <bits/stdc++.h> using namespace std; bool prime(int p){ // 如果是平方要取等号 for(int i = 2; i <= sqrt(p); i++){ if(p % i == 0) return false; } return 阅读全文

posted @ 2021-09-05 21:44 Atl212 阅读(42) 评论(0) 推荐(0)

1006 换个格式输出整数 (15 point(s))

摘要: // Time Limit Exceeded 13分 #include <bits/stdc++.h> using namespace std; int main(){ int a[3]; string str; cin >> str; // 记录有多少位 int byte = str.size() 阅读全文

posted @ 2021-09-05 17:36 Atl212 阅读(36) 评论(0) 推荐(0)

1003 我要通过! (20 point(s))

摘要: // 15point 乱来写乱来凑输出 // 虽然能够通过样例,但实际连题目给出的条件都没有全覆盖 #include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; while(n--){ string str; 阅读全文

posted @ 2021-09-05 17:21 Atl212 阅读(52) 评论(0) 推荐(0)

导航