会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
一名蒟蒻
博客园
首页
新随笔
联系
订阅
管理
随笔 - 92
文章 - 0
评论 - 13
阅读 -
5812
2025年2月12日
Codeforces Round 1004 (Div. 2)
摘要: A. Adjacent Digit Sums 题意:求有没有一个数字各位和为
x
,并且加一后各位和为
y
。 发现一个数加一后,要么和加一,要么进若干位,就是减若干个9然后加1。所以判断
y
==
x
+
1
|
|
(
x
−
y
+
1
)
%
9
==
0
点击查看代码 void
阅读全文
posted @ 2025-02-12 00:35 maburb
阅读(331)
评论(2)
推荐(1)
编辑
公告
昵称:
maburb
园龄:
1个月
粉丝:
11
关注:
0
+加关注
<
2025年2月
>
日
一
二
三
四
五
六
26
27
28
29
30
31
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
1
2
3
4
5
6
7
8
最新随笔
1.VP Educational Codeforces Round 18
2.Educational Codeforces Round 175 (Rated for Div. 2)
3.VP Codeforces Round 896 (Div. 2)
4.VP Educational Codeforces Round 19
5.VP TOYOTA SYSTEMS Programming Contest 2024(AtCoder Beginner Contest 377)
6.VP Educational Codeforces Round 17
7.Codeforces Round 1006 (Div. 3)
8.VP AtCoder Beginner Contest 378
9.VP Educational Codeforces Round 16
10.VP Codeforces Round 906 (Div. 2)
随笔分类
牛客(15)
刷题(10)
atcoder(17)
codeforces(50)
点击右上角即可分享