Kevinrzy103874的博客

Kevinrzy103874的博客

动态线条
动态线条end
code: {

专注于分享信息学竞赛技巧、知识点、模拟赛及一些题目题解,又有着当码农的乐趣,有时还会写写比赛游记等等。

摘要: 题目请看洛谷 备注:这次比赛我是没打的 T1 先把数转成二进制,逐位计算,并判断是否可完整正确拆分 贴一下代码 #include <bits/stdc++.h> using namespace std; #define fre(c) freopen(c".in","r",stdin);freopen 阅读全文
posted @ 2025-10-11 13:17 Kevinrzy103874 阅读(8) 评论(0) 推荐(0)
摘要: 题目请看 T1 跟着题目进行模拟,关键在于匹配字符串。 输出要用mod进行优化一下回使代码更加简洁。 贴一下代码 #include <bits/stdc++.h> using namespace std; #define fre(c) freopen(c".in","r",stdin);freope 阅读全文
posted @ 2025-08-06 15:58 Kevinrzy103874 阅读(18) 评论(0) 推荐(0)
摘要: 题目请看 T1 贪心:主要考察\(<50\%\)时\(差值\ mod \ 2 \neq 0\)与\(>50\%\)时\(差值\ mod \ 3 \neq 0\)的情况 \(\begin{cases} \text{计算 } cha = 50 - n \\ \text{如果 } cha \bmod 2 阅读全文
posted @ 2025-07-30 16:57 Kevinrzy103874 阅读(35) 评论(0) 推荐(0)
摘要: 题目请看 T1 一点点贪心,因为包包每天都要吃饺子,所以问题可以转化为看是之前\(买饺子的钱+存储的钱\)与\(现在购买饺子的钱\),把它们进行比较,就能知道怎样更划算了; 贴一下代码 #include <bits/stdc++.h> using namespace std; #define fre 阅读全文
posted @ 2025-07-25 16:37 Kevinrzy103874 阅读(9) 评论(0) 推荐(0)