上一页 1 ··· 3 4 5 6 7 8 9 10 11 下一页

2021年9月7日

1065 单身狗 (25 point(s))

摘要: #include <bits/stdc++.h> using namespace std; int main() { // N 夫妻/伴侣的对数 ID 号 5 位数字 // M 派对的总人数 M 位客人的 ID int n, m; map<string, string> couples; set<s 阅读全文

posted @ 2021-09-07 12:13 Atl212 阅读(69) 评论(0) 推荐(0)

1064 朋友数 (20 point(s))

摘要: #include <bits/stdc++.h> using namespace std; int main() { int n, tmp, a, b, c, d, first = 0; set<int> fri; cin >> n; while(n--){ cin >> tmp; a = tmp 阅读全文

posted @ 2021-09-07 08:12 Atl212 阅读(33) 评论(0) 推荐(0)

1063 计算谱半径 (20 point(s))

摘要: #include <bits/stdc++.h> using namespace std; int main() { float n, max = 0, a, b; cin >> n; while(n--){ cin >> a >> b; if(max < a * a + b * b) max = 阅读全文

posted @ 2021-09-07 08:00 Atl212 阅读(62) 评论(0) 推荐(0)

2021年9月6日

1061 判断题 (15 point(s))

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

posted @ 2021-09-06 22:18 Atl212 阅读(15) 评论(0) 推荐(0)

1059 C语言竞赛 (20 point(s))

摘要: // 10 #include <bits/stdc++.h> using namespace std; struct Stu{ int rank, existed; }; bool prime(int p){ for(int i = 2; i <= sqrt(p); i++) if(p % i == 阅读全文

posted @ 2021-09-06 07:52 Atl212 阅读(61) 评论(0) 推荐(0)

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)

上一页 1 ··· 3 4 5 6 7 8 9 10 11 下一页

导航