JavaShuo
栏目
标签
Codeforces ~ 1082A ~ Vasya and Book (水)
时间 2021-01-08
原文
原文链接
题意 T组测试数据,每次输入n,x,y,d表示这本书有n页,你要从x页翻到y页,你每次只可以往前或往后严格的翻d页,不会超过最后一页和第一页。输入最少需要翻多少次?翻不到输出-1. 思路 考虑三种情况即可。①直接翻到②翻到第一页然后翻到y③翻到最后一页然后翻到y #include<bits/stdc++.h> using namespace std; const int INF = 0x3f3f3
>>阅读原文<<
相关文章
1.
Codeforces 584C Marina and Vasya
2.
Vasya and Golden Ticket CodeForces - 1030C
3.
Codeforces Round #512 C - Vasya and Golden Ticket
4.
Codeforces Round #281 (Div. 2) A - Vasya and Football
5.
D. Vasya and Arrays
6.
B. Vasya and Cornfield
7.
[CF1093F]Vasya and Array
8.
Vasya and Triangle - codeforce
9.
Codeforces 1213C Book Reading
10.
E. Vasya and Beautiful Arrays
更多相关文章...
•
W3C RDF and OWL 活动
-
W3C 教程
•
XSL-FO table-and-caption 对象
-
XSL-FO 教程
•
RxJava操作符(七)Conditional and Boolean
•
Flink 数据传输及反压详解
相关标签/搜索
vasya
book
codeforces
action.....and
between...and
react+and
codeforces.1174d.arraysplitting
Codeforces 98E
codeforces.888g.xor
codeforces.1174d.ehabandtheexpectedxorproblem
Thymeleaf 教程
0
分享到微博
分享到微信
分享到QQ
每日一句
每一个你不满意的现在,都有一个你没有努力的曾经。
最新文章
1.
.Net core webapi2.1生成exe可执行文件
2.
查看dll信息工具-oleview
3.
c++初学者
4.
VM下载及安装
5.
win10下如何安装.NetFrame框架
6.
WIN10 安装
7.
JAVA的环境配置
8.
idea全局配置maven
9.
vue项目启动
10.
SVN使用-Can't remove directoryXXXX,目录不是空的,项目报错,有红叉
本站公众号
欢迎关注本站公众号,获取更多信息
相关文章
1.
Codeforces 584C Marina and Vasya
2.
Vasya and Golden Ticket CodeForces - 1030C
3.
Codeforces Round #512 C - Vasya and Golden Ticket
4.
Codeforces Round #281 (Div. 2) A - Vasya and Football
5.
D. Vasya and Arrays
6.
B. Vasya and Cornfield
7.
[CF1093F]Vasya and Array
8.
Vasya and Triangle - codeforce
9.
Codeforces 1213C Book Reading
10.
E. Vasya and Beautiful Arrays
>>更多相关文章<<