This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cmath> | |
#include <iostream> | |
using namespace std; | |
typedef long long ll; | |
int *arr; | |
ll *tree; | |
ll init(int idx, int start, int end) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "ros/ros.h" | |
#include "turtlesim/Pose.h" | |
#include "std_msgs/Float64.h" | |
#include "geometry_msgs/Twist.h" | |
#include "ar_track_alvar_msgs/AlvarMarker.h" | |
#include "ar_track_alvar_msgs/AlvarMarkers.h" | |
#include <cmath> | |
#include <cstdlib> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo firmwared & | |
sleep 10s | |
if [ $1 == '1' ] | |
then | |
sed -i "16s/wlp2s0/eth0/" /opt/parrot-sphinx/usr/share/sphinx/drones/bebop2.drone | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <deque> | |
#include <iostream> | |
using namespace std; | |
struct MAL { | |
int num, dir; | |
MAL(int num = 0, int dir = 0) | |
: num(num), dir(dir) {} | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <tuple> | |
#include <queue> | |
#include <deque> | |
#include <vector> | |
#include <iostream> | |
using namespace std; | |
int dx[4] = { 1, -1, 0, 0 }; | |
int dy[4] = { 0, 0, 1, -1 }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cmath> | |
#include <queue> | |
#include <tuple> | |
#include <iomanip> | |
#include <cstring> | |
#include <iostream> | |
#include <algorithm> | |
using namespace std; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "ros/ros.h" | |
#include "ros_tutorials_service/SrvTutorial.h" | |
#include <cstdlib> | |
int main(int argc, char **argv) | |
{ | |
ros::init(argc, argv, "service_client"); | |
if (argc != 3) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "ros/ros.h" | |
#include "ros_tutorials_topic/MsgTutorial.h" | |
int main(int argc, char **argv) { | |
ros::init(argc, argv, "topic_publisher"); | |
ros::NodeHandle nh; | |
// 메세지 타입을 템플릿 타입으로 입력 | |
ros::Publisher ros_tutorial_pub = | |
nh.advertise<ros_tutorials_topic::MsgTutorial>("ros_tutorial_msg", 100); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <set> | |
#include <queue> | |
#include <vector> | |
#include <iostream> | |
#include <algorithm> | |
using namespace std; | |
typedef long long ll; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <queue> | |
#include <tuple> | |
#include <string> | |
#include <cstring> | |
#include <iostream> | |
using namespace std; | |
int mat[1001][1001]; | |
int d[1001][1001][11][2]; |