Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- 백준
- 큐빙
- github
- 두 동전
- vscode
- service
- Android
- Java
- spring
- 안드로이드
- insert
- ubuntu
- goland
- broadcastreceiver
- intent
- 프로그래머스
- IntelliJ
- 알고리즘
- git
- Algorithm
- activity
- 17837
- 제어반전
- data
- 데이터전달
- 단축키
- 16197
- Jenknis
- mysql
- 데이터
Archives
- Today
- Total
목록주사위굴리기 (1)
해보자

#include using namespace std; int N, M; int map[20][20]; int main() { int dice[6] = { 0 }; int t_dice[6] = { 0 }; int diceMap[4][6] = { { 4, 2, 1, 6, 5, 3}, { 3, 2, 6, 1, 5, 4}, { 5, 1, 3, 4, 6, 2}, { 2, 6, 3, 4, 1, 5} }; pair dir[4] = { {0,1}, {0,-1} ,{-1,0}, {1,0} }; int x, y, K; // 입력 cin >> N >> M >> y >> x >> K; for (int i = 0; i > map[i][j]; for..
C++/Solve & Think
2020. 11. 24. 22:21