일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- nav2 getting started
- CODEUP 6073
- 코드업
- first-time robot setup guide
- ros2 foxy tutorial
- ROS FOXY 튜토리얼
- Foxy tutorial
- nav2 tutorial
- foxy nav2
- nav2 first-time robot setup guide
- ros2 transformations 개념
- ros2 development guides
- nav2 튜토리얼
- nav2 dev contatiner
- Nav2 document
- error
- nav2 development guides
- nav2 설치
- CodeUp
- Python
- ros2 환경설정
- ros2 튜토리얼 환경설정
- humble 환경설정
- ros2 foxy docker
- ros2 튜토리얼
- ros2 configuring environment
- setting up transformations
- humble development guides
- ros2 remapping
- docker foxy
Archives
- Today
- Total
BAN2ARU
CODEUP 1099번 본문
반응형
https://codeup.kr/problem.php?id=1099
#include <stdio.h>
int main()
{
int a[11][11] = {};
int i,j,input,x=2, y=2;
for(i=1; i<=10; i++)
{
for(j=1; j<=10; j++)
{
scanf("%d ",&a[i][j]);
}
scanf("\n");
}
while(a[x][y]!=2 && (x<9||y<9))
{
if(a[x][y]==0)
{
a[x][y]=9;
y++;
}
else if(a[x][y]==1)
{
y--;
x++;
}
}
a[x][y]=9;
for(i=1; i<=10; i++)
{
for(j=1; j<=10; j++)
{
printf("%d ",a[i][j]);
}
printf("\n");
}
}
이로써, C++ 100제 완료!
728x90
'Coding Test > CodeUp' 카테고리의 다른 글
CODEUP 6072번 (0) | 2022.03.09 |
---|---|
Codeup 6099번 (0) | 2021.11.11 |
CODEUP 6033번 (0) | 2021.11.10 |
CODEUP 1079번 (0) | 2021.11.05 |
CODEUP 1076번 (0) | 2021.11.05 |
Comments