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

2021年9月2日

1051 复数乘法 (15 point(s))

摘要: #include <bits/stdc++.h> using namespace std; int main() { double R1, P1, R2, P2, A, B; cin >> R1 >> P1 >> R2 >> P2; A = R1 * R2 * (cos(P1) * cos(P2) 阅读全文

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

1050 螺旋矩阵 (25 point(s))(未AC错误代码,仅错误思路记录)

摘要: #include <bits/stdc++.h> using namespace std; int main() { int N, m, n; set<int> num; cin >> N; // 待填充序列 for(int i = 0; i < N; i++){ int tmp; cin >> t 阅读全文

posted @ 2021-09-02 11:52 Atl212 阅读(58) 评论(0) 推荐(0)

2021年9月1日

1049 数列的片段和 (20 point(s))

摘要: // 暴力超时 #include <bits/stdc++.h> using namespace std; int main() { // 截取连续片段 计算片段和 // 一种方法 顺序循环从第一位开始 // 用一个片段和变量记录之前所走过变量的和 并累加到结果 double n, part, su 阅读全文

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

1048 数字加密 (20 point(s))

摘要: // 错误魔改后正确版 #include <bits/stdc++.h> using namespace std; int main() { // 加密整数A 加密序列B string A, B, str = "0123456789JQK" ; cin >> A >> B; // 高位补零 // 获 阅读全文

posted @ 2021-09-01 16:03 Atl212 阅读(117) 评论(0) 推荐(0)

1047 编程团体赛 (20 point(s))

摘要: #include <bits/stdc++.h> using namespace std; int main() { int n, max = 0; map<int, int> result; cin >> n; while(n--){ int num, i, score; // 队伍编号1-100 阅读全文

posted @ 2021-09-01 12:19 Atl212 阅读(15) 评论(0) 推荐(0)

1046 划拳 (15 point(s))

摘要: #include <bits/stdc++.h> using namespace std; int main() { int n, sayA, handA, sayB, handB, loseA = 0, loseB = 0; cin >> n; while(n--){ cin >> sayA >> 阅读全文

posted @ 2021-09-01 11:57 Atl212 阅读(37) 评论(0) 推荐(0)

1045 快速排序 (25 point(s))

摘要: #include <bits/stdc++.h> #define INF 0x3f3f3f3f using namespace std; int main() { // 取主元 左小右大 判断主元个数 int n, a[100000], b[2][100000], max = 0, min = IN 阅读全文

posted @ 2021-09-01 11:35 Atl212 阅读(64) 评论(0) 推荐(0)

2021年8月31日

1044 火星数字 (20 point(s))

摘要: #include <bits/stdc++.h> using namespace std; int main() { // 十三进制 string low[13]{"tret", "jan", "feb", "mar", "apr", "may", "jun", "jly", "aug", "sep 阅读全文

posted @ 2021-08-31 22:01 Atl212 阅读(70) 评论(0) 推荐(0)

1041 考试座位号 (15 point(s))

摘要: #include <bits/stdc++.h> using namespace std; struct Stu{ long long id; int num; }; int main() { int n, m; map<int ,Stu> stu; // 读取考生人数 cin >> n; // 读 阅读全文

posted @ 2021-08-31 19:23 Atl212 阅读(47) 评论(0) 推荐(0)

1043 输出PATest (20 point(s))

摘要: #include <bits/stdc++.h> using namespace std; int main() { // 英文字符串 重置顺序(固定格式 删去其他字符 // 区分大小写 string str; cin >> str; int P = 0, A = 0, T = 0, e = 0, 阅读全文

posted @ 2021-08-31 16:26 Atl212 阅读(43) 评论(0) 推荐(0)

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

导航