정영주

  • 홈

1405 1

(C++) BOJ/백준 1405 - 미친 로봇

문제 출처 : BOJ 1405 - 미친 로봇 www.acmicpc.net/problem/1405 과제로 풀게 된 문제인데.. 미친 로봇을 풀다가 내가 미쳐버릴 것 같았다. 최종 코드 #include #include using namespace std; double dir[4]; // 각 방향의 확률 저장 int dx[4] = { 1, -1, 0, 0 }; // 동, 서 int dy[4] = { 0, 0, -1, 1 }; // 남, 북 double robot(int x, int y, int visit[30][30], int count, int n) { if (count == n) return 1; int visit_tmp[30][30]; for (int i = 0; i < 30; i++) { for (in..

BOJ 2021.05.09
1
더보기
프로필사진

yeongjujeong1021@gmail.com

  • CATEGORY (31)
    • BOJ (31)
    • ICPC Sinchon (0)
      • 2021 Summer 초급 (0)
      • 2022 Winter 초급 (0)
      • 2022 Winter 중급 (0)

Tag

1158, 1405, 2751, 10828, solved.ac, 5565, 1406, ICPC신촌, 2230, 2609, 15904, 5635, c++, 10814, C, 11098, 23327, 3986, 백준, BOJ,

Copyright © Kakao Corp. All rights reserved.

  • BOJ

티스토리툴바