摘要:
C++代码如下: #include <iostream> #include <vector> using namespace std; int main() { vector<int> nums(4,0); vector<char> ch(3); while (cin >> nums[0] >> c 阅读全文
posted @ 2020-07-29 21:41
repinkply
阅读(302)
评论(0)
推荐(0)
摘要:
这道题目和 leetcode62 路径数量一样的,唯一不同的就是牛客网n,m需要加1,这样才能够运行。 #include <iostream> #include <string> #include <vector> #include <algorithm> using namespace std; 阅读全文
posted @ 2020-07-29 21:24
repinkply
阅读(165)
评论(0)
推荐(0)
摘要:
C++代码: #include <iostream> #include <string> #include <vector> using namespace std; int main() { string str = ""; while (cin >> str) { vector<string> 阅读全文
posted @ 2020-07-29 20:49
repinkply
阅读(362)
评论(0)
推荐(0)
摘要:
C++代码如下: #include <iostream> #include <vector> #include <algorithm> #include <cmath> #include <numeric> using namespace std; bool DFS(vector<int> &num 阅读全文
posted @ 2020-07-29 17:36
repinkply
阅读(199)
评论(0)
推荐(0)
摘要:
输入输出格式一定要与样例一样,连一个空格,逗号都不能少,否者就会报错。 C++代码如下: #include <iostream> #include <vector> #include <string> #include <map> using namespace std; int main() { 阅读全文
posted @ 2020-07-29 16:32
repinkply
阅读(569)
评论(0)
推荐(0)
摘要:
C++代码如下: #include <iostream> #include <iomanip> using namespace std; int main() { int n = 0; while (cin >> n) { int count = 0; int negativeCount=0; do 阅读全文
posted @ 2020-07-29 12:02
repinkply
阅读(460)
评论(0)
推荐(0)

浙公网安备 33010602011771号