上一页 1 2 3 4 5 6 7 ··· 30 下一页
摘要: ![](https://img2023.cnblogs.com/blog/2832235/202307/2832235-20230713224337822-53795320.png) ``` #include "mainwindownoui.h" #include #include #include 阅读全文
posted @ 2023-07-13 22:44 高尔赛凡尔娟 阅读(21) 评论(0) 推荐(0) 编辑
摘要: ![](https://img2023.cnblogs.com/blog/2832235/202307/2832235-20230713221907568-2057744277.png) ``` #include "mainwindownoui.h" #include #include #inclu 阅读全文
posted @ 2023-07-13 22:20 高尔赛凡尔娟 阅读(18) 评论(0) 推荐(0) 编辑
摘要: > 很久没写题目了,划点水题 ###A. Love Story ``` #include using namespace std; typedef long long LL; typedef pair PII; const LL MAXN = 1e18; const LL N = 1e6, M = 阅读全文
posted @ 2023-07-12 18:47 高尔赛凡尔娟 阅读(8) 评论(0) 推荐(0) 编辑
摘要: ``` 创建三个按钮,第一个打开一个新的页面,第二个关闭这个新的页面,第三个共有前两个按钮的功能。 ``` ``` #include "widget.h" #include "ui_widget.h" #include #include Widget::Widget(QWidget *parent) 阅读全文
posted @ 2023-07-12 18:39 高尔赛凡尔娟 阅读(16) 评论(0) 推荐(0) 编辑
摘要: https://codeforces.com/contest/1144/problem/F 题目大意: 给定n个点,m条边; 每一条边都连接了两个点。 现在需要我们染色,要求是做到所有有向图不包含长度为2或者更长的路径。 input 6 5 1 5 2 1 1 4 3 1 6 1 output YE 阅读全文
posted @ 2023-04-20 18:05 高尔赛凡尔娟 阅读(24) 评论(0) 推荐(0) 编辑
摘要: https://codeforces.com/contest/1320/problem/A ###A. Journey Planning 题目大意: 给定一组数,问我们ai-aj==i-j的时候就可以把ai的值加起来,问我们可以凑到的最大总值是多少? input 6 10 7 1 9 10 15 o 阅读全文
posted @ 2023-04-17 21:19 高尔赛凡尔娟 阅读(9) 评论(0) 推荐(0) 编辑
摘要: https://codeforces.com/contest/1820 ###A. Yura's New Name 题目大意: 给定一个字符串,每次这个表情^^或者这个表情^_^就是合法的 问我们这个字符串至少要添加多少东西使得怎么看都是合法的? input 7 ^______^ ___^_^^^_ 阅读全文
posted @ 2023-04-17 20:46 高尔赛凡尔娟 阅读(64) 评论(0) 推荐(0) 编辑
摘要: https://codeforces.com/contest/1535/problem/C 题目大意: 给定一个字符串s,由 1 0 ?组成:?每次都可以任意替换成0或者1 问我们这个子字符串中,能够组成010101这样两两互不相等的字符串的数量最大是多少? input 3 0?10 ??? ?10 阅读全文
posted @ 2023-04-14 20:16 高尔赛凡尔娟 阅读(12) 评论(0) 推荐(0) 编辑
摘要: https://atcoder.jp/contests/abc297/tasks/abc297_d ###D - Count Subtractions 题目大意: 给定一个n和一个m,每次如果n>m,n-=m;如果n<m,m-=n; 问我们多少次操作才能使n=m? Sample Input 1 3 阅读全文
posted @ 2023-04-11 20:54 高尔赛凡尔娟 阅读(29) 评论(0) 推荐(0) 编辑
摘要: https://pintia.cn/problem-sets/994805046380707840/exam/problems/994805050709229568 输入样例: 7 5 4 1 2 2 3 3 1 4 5 5 6 1 4 5 7 输出样例: 2 6 4 0 #include<bits 阅读全文
posted @ 2023-04-10 21:23 高尔赛凡尔娟 阅读(47) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 30 下一页