![](https://img-blog.csdnimg.cn/20210502112213580.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
Vjudge
文章平均质量分 92
Vjudge网上的一些练习题目
FeverTwice
Stay hungry, stay foolish!
(╹ڡ╹ )
展开
-
POJ3984 the maze problem (迷宫问题) [BFS] (set5)
文章目录题目描述输入描述输出描述输入输出样例一、解题思路二、题解源代码VJudge评判结果Reference写在最后题目描述定义一个二维数组:int maze[5][5] = {0, 1, 0, 0, 0,0, 1, 0, 1, 0,0, 0, 0, 0, 0,0, 1, 1, 1, 0,0, 0, 0, 1, 0,};它表示一个迷宫,其中的1表示墙壁,0表示可以走的路,只能横着走或竖着走,不能斜着走,要求编程序找出从左上角到右下角的最短路线。输入描述一个5 × 5的二维数组.原创 2021-05-23 17:07:46 · 151 阅读 · 0 评论 -
Equalizing by Division (easy/hard version)
文章目录题目描述输入描述输出描述输入输出样例一、解题思路二、题解源代码VJudge评判结果洛谷评判结果写在最后题目描述您将得到一个由n个整数组成的数组a。每次操作中您可以选择任何 a[i] 并将其除以2舍入(换句话说,您可以将a[i]变为a[i]/2)。 您可以执行任意(可能为零)次这样的操作。 您的任务是计算在数组中至少获得k个相等数所需的最小操作数。 不要忘记,经过若干次操作后,a[i] = 0总是可能的,因此答案总是存在的。输入描述输入的第一行包含两个整数n和k(1≤k≤n≤2⋅105).原创 2021-05-09 18:15:51 · 260 阅读 · 0 评论 -
Olympiad (奥林匹克信息赛) Visual Judge (Set3)
文章目录题目描述输入描述输出描述输入输出样例线索提示一、解题思路二、题解源代码VJudge评判结果写在最后题目描述The recent All-Berland Olympiad in Informatics featured n participants with each scoring a certain amount of points.As the head of the programming committee, you are to determine the set of part.原创 2021-05-02 22:04:23 · 326 阅读 · 0 评论 -
Love Triangle (三角恋) Visual Judge (Set3)
文章目录题目描述输入描述输出描述输入输出样例线索提示一、解题思路二、题解源代码VJudge评判结果写在最后题目描述Love Triangle (三角恋)告诉你每个人喜欢谁,问你这堆人里面有没有三角恋存在输入描述第一行输入一个整数N(2≤ N ≤5000),表示有N个人第二行输入整数F1,F2,F3,⋯ ,FN (1⩽Fi⩽N,Fi≠i)F_1,F_2,F_3, \cdots \,\,,F_N\,\,\left( 1\leqslant F_i\leqslant N,F_i\ne i .原创 2021-05-02 20:53:10 · 376 阅读 · 0 评论 -
Cheat Sheet (小抄) Visual Judge (Set3)
文章目录题目描述输入描述输出描述输入输出样例线索提示一、解题思路二、题解源代码VJudge评判结果参考文献写在最后题目描述Cheat Sheet (小抄)University of Shanghai for Science and Technology starts a course called Film Appreciation of Black Album recently. To be the best “Blackologist” in the university, Setsuna i.原创 2021-05-02 17:34:30 · 312 阅读 · 0 评论 -
Bamboo Leaf Rhapsody (竹叶狂想曲) Visual Judge (Set3)
文章目录题目描述输入描述输出描述输入输出样例线索提示一、解题思路二、题解源代码VJudge评判结果写在最后题目描述Bamboo Leaf Rhapsody (竹叶狂想曲)Do you know who will fulfill people’s wishes on Tanabata?It’s α Lyra and α Aquila.By the way, Earth is 25 light-years away from α Lyra and 16 light-years away from .原创 2021-05-02 16:10:50 · 210 阅读 · 0 评论 -
Solution for Archmage(大法师)Visual Judge (Set 3)
文章目录题目描述输入描述输出描述输入输出样例线索提示一、解题思路观察易得注意点使用模拟?数据类型二、题解源代码VJudge评判结果参考文献写在最后题目描述Archmage(大法师)Archmage (AM for short) is a hero unit in WatercraftⅢ.He has n mana at most and two powerful skills which enable him to show great strength in battle:Use x man.原创 2021-05-02 12:02:04 · 232 阅读 · 0 评论