![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
牛客网(c/c++)
文章平均质量分 66
叶柖
试图会写文章
展开
-
【c/c++】路径打印
题目链接题目描述给你一串路径,譬如: a\b\c a\d\e b\cst d\ 你把这些路径中蕴含的目录结构给画出来,子目录直接列在父目录下面,并比父目录向右缩一格,就像这样: a b c d e b cst d 同一级的需要按字母顺序排列,不能乱。...原创 2021-02-25 13:11:35 · 993 阅读 · 0 评论 -
【c/c++】Sum of Factorials
题目链接题目描述John von Neumann, b. Dec. 28, 1903, d. Feb. 8, 1957, was a Hungarian-American mathematician who made important contributions to the foundations of mathematics, logic, quantum physics, meteorology, science, computers, and game theory. He was noted原创 2021-02-10 15:23:10 · 301 阅读 · 0 评论 -
【c/c++】棋盘游戏
题目链接题目描述有一个6*6的棋盘,每个棋盘上都有一个数值,现在又一个起始位置和终止位置,请找出一个从起始位置到终止位置代价最小的路径:1、只能沿上下左右四个方向移动 2、总代价是没走一步的代价之和 3、每步(从a,b到c,d)的代价是c,d上的值与其在a,b上的状态的乘积 4、初始状态为1 每走一步,状态按如下公式变化:(走这步的代价%4)+1。输入描述每组数据一开始为6*6的矩阵,矩阵的值为大于等于1小于等于10的值,然后四个整数表示起始坐标和终止坐标。输出描述原创 2021-02-08 22:06:25 · 1856 阅读 · 0 评论 -
【c/c++】数字反转
题目链接题目描述12翻一下是21,34翻一下是43,12+34是46,46翻一下是64,现在又任意两个正整数,问他们两个数反转的和是否等于两个数的和的反转。输入描述每行两个正整数a和b(0<a,b<=10000)。输出描述如果满足题目的要求输出a+b的值,否则输出NO。输入样例12 3499 1输出样例46NO思路知道怎么将数反转就很容易做了代码#include<bits/stdc++.h>using namespace std;//将数原创 2021-02-07 00:15:29 · 1144 阅读 · 0 评论 -
【c/c++】Fibonacci
题目链接题目描述原创 2021-02-06 21:34:14 · 150 阅读 · 0 评论 -
【c/c++】Old Bill
题目链接题目描述Among grandfather’s papers a bill was found. 72 turkeys $_679_ The first and the last digits of the number that obviously represented the total price of those turkeys are replaced here by blanks (denoted _), for they are faded and are illegible.原创 2021-02-03 22:52:23 · 396 阅读 · 0 评论 -
【c/c++】Simple Sorting
题目链接题目描述You are given an unsorted array of integer numbers. Your task is to sort this array and kill possible duplicated elements occurring in it.给你一个未排序的整数数组。您的任务是对该数组进行排序,并消除其中可能出现的重复元素。输入描述For each case, the first line of the input contains an inte原创 2021-02-02 22:19:07 · 107 阅读 · 0 评论 -
【c/c++】WERTYU
题目描述A common typing error is to place the hands on the keyboard one row to the right of the correct position. So “Q” is typed as “W” and “J” is typed as “K” and so on. You are to decode a message typed in this manner.一个常见的打字错误是将手放在键盘上正确位置的右边一行。Q被输入为W,J被输原创 2021-02-02 17:20:01 · 436 阅读 · 0 评论 -
【c/c++】二次方程计算器
题目描述设计一个二次方程计算器输入描述每个案例是关于x的一个二次方程表达式,为了简单,每个系数都是整数形式。输出描述每个案例输出两个实数(由小到大输出,中间由空格隔开),保留两位小数;如果无解,则输出“No Solution”。...原创 2021-01-21 15:09:59 · 584 阅读 · 0 评论 -
【c/c++】String Matching
题目描述Finding all occurrences of a pattern in a text is a problem that arises frequently in text-editing programs. Typically,the text is a document being edited,and the pattern searched for is a particular word supplied by the user. We assume that原创 2021-01-18 21:53:59 · 245 阅读 · 1 评论