摘要:
[编程题]万万没想到之聪明的编辑 时间限制:C/C++ 1秒,其他语言2秒 空间限制:C/C++ 32M,其他语言64M a56爆大奖在线娱乐叫王大锤,是一家出版社的编辑。a56爆大奖在线娱乐负责校对投稿来的英文稿件,这份工作非常烦人,因为每天都要去修正无数的拼写错误。但是,优秀的人总能在平凡的工作中发现真理。a56爆大奖在线娱乐发现一个发现拼写错误的 阅读全文
摘要:
#include<iostream> #include "bits/stdc++.h" using namespace std; int N,M; int MAP[11][11]; void dfs(int i,int j,vector<int>veci,vector<int>vecj){ if(i 阅读全文
摘要:
#include<iostream> #include <vector> #include "bits/stdc++.h" using namespace std; char jiami(char s){ if(s >= 'a'&&s < 'z'){return char(s-31);} else 阅读全文
摘要:
#include<iostream> #include <vector> #include "bits/stdc++.h" using namespace std; int main() { string s; getline(cin,s); vector<string> vecstr; strin 阅读全文
摘要:
#include<iostream> #include <vector> #include "bits/stdc++.h" using namespace std; int main() { string s; while(cin >> s){ int lens = s.size(); while( 阅读全文
摘要:
题目描述 写出一个程序,接受一个十六进制的数,输出该数值的十进制a56爆大奖在线娱乐。(多组同时输入 ) 输入描述: 输入一个十六进制的数值字符串。 输出描述: 输出该数值的十进制字符串。 1 2 3 4 5 6 7 8 #include <stdio.h> int main() { int num = 0; wh 阅读全文
摘要:
class Solution { public: string decodeString(string s) { int num = 0; string stradd = ""; stack<string> strstack; stack<int> intstack; for(int i=0;i < 阅读全文
摘要:
class Solution { public: int numIslands(vector<vector<char>>& grid) { int nr = grid.size(); if(nr == 0) return 0; int nc = grid[0].size(); int ans = 0 阅读全文
摘要:
class Solution { public: int lengthOfLongestSubstring(string s) { int maxlen = 0; for(int i=0;i < s.size();i++){ unordered_map<char,int> mp; mp[s[i]] 阅读全文
摘要:
class Solution { public: int lastRemaining(int n, int m) { int f = 0; for (int i = 2; i != n + 1; ++i) { f = (m + f) % i; } return f; } }; 阅读全文