코딩테스트/HackerRank
[HackerRank] New Year Chaos
void minimumBribes(vector q) { int p1=1,p2=2,p3=3; int total=0; for(int i=0;i
[HackerRank] The Bomberman Game
// 상하좌우IntPair dir[]{ { 1, 0 }, {-1, 0 }, { 0, -1 }, { 0, 1 }};vector bomberMan(int n, vector grid){ vector> pos; int r = grid.size(), c = grid[r - 1].size(); if (0 == n % 2) { for (int y = 0; y = 0 && ny = 0 && nx