Skip to content

Instantly share code, notes, and snippets.

#include "ros/ros.h"
#include "ros_tutorials_topic/MsgTutorial.h"
int main(int argc, char **argv)
{
}
#include <string>
#include <iostream>
using namespace std;
int mat[100][100];
int main(void) {
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
#include <string>
#include <iostream>
#include <algorithm>
using namespace std;
int arr[1000];
bool cmp(const int &u, const int &v) {
string a = to_string(u) + to_string(v);
cmake_minimum_required(VERSION 2.8.3)
project(beginner_tutorials)
## Compile as C++11, supported in ROS Kinetic and newer
# add_compile_options(-std=c++11)
## Find catkin macros and libraries
## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz)
## is used, also find other catkin packages
find_package(catkin REQUIRED COMPONENTS
#include <stack>
#include <string>
#include <vector>
using namespace std;
string solution(string number, int k) {
string answer = "";
int len = number.length();
#include <queue>
#include <string>
#include <vector>
using namespace std;
struct tp {
int idx;
int sum;
string s;
#include <string>
#include <vector>
#include <algorithm>
using namespace std;
int d[101][101];
int solution(int n, vector<vector<int>> results) {
int answer = 0;
#include <cstring>
#include <iostream>
#include <algorithm>
using namespace std;
int d[501][501];
int main(void) {
ios_base::sync_with_stdio(false);
#include <queue>
#include <vector>
#include <string>
#include <cstring>
#include <algorithm>
#include <functional>
using namespace std;
vector<int> mat[20001];
#include <iostream>
using namespace std;
int main(void) {
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
int n;
cin >> n;