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 <cstring> | |
#include <iostream> | |
#include <algorithm> | |
using namespace std; | |
int n, m, r; | |
int mat[100][100]; | |
int tmat[100][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 <vector> | |
#include <cstring> | |
#include <utility> | |
#include <iostream> | |
using namespace std; | |
int n, m, snum; | |
int mat[100][100]; | |
int ans = 0; |
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 <vector> | |
#include <string> | |
#include <climits> | |
#include <cstring> | |
#include <iostream> | |
using namespace std; | |
int n; | |
char s[30]; |
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 <cstdio> | |
#include <vector> | |
#include <string> | |
#include <iostream> | |
using namespace std; | |
vector<int> makeTable(string pattern) { | |
int strsize = pattern.size(); | |
vector<int> table(strsize); |
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 <cstdio> | |
#include <string> | |
#include <vector> | |
#include <sstream> | |
#include <iostream> | |
using namespace std; | |
vector<int> makeTable(string pattern) { | |
int strsize = pattern.size(); |
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
/* 로봇의 pose 좌표를 받아서 tf로 변환하는 예제 */ | |
#include <ros/ros.h> | |
#include <tf/transform_broadcaster.h> | |
#include <turtlesim/Pose.h> | |
std::string turtle_name; | |
void poseCallback(const turtlesim::PoseConstPtr &msg) { | |
static tf::TransformBroadcaster br; |
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> | |
#include <algorithm> | |
using namespace std; | |
int mat[300][300]; | |
int main(void) { | |
ios_base::sync_with_stdio(false); |
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
#!/usr/bin/env python | |
import sys | |
import rospy | |
from geometry_msgs.msg import Twist | |
def move(): | |
# Starts a new node name 'robot_cleaner' | |
rospy.init_node('robot_cleaner', anonymous=True) | |
# declair publisher name:pub, topic:'/turtle1/cmd_vel', type:Twist |
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 <cstring> | |
#include <iostream> | |
using namespace std; | |
int d[1000001]; | |
int go(int n) { | |
if (n == 1) { | |
return 0; |
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 <cstring> | |
#include <iostream> | |
#include <algorithm> | |
using namespace std; | |
int n; | |
int mat[16][16]; | |
int d[16][(1 << 16)]; |