목록Algorithm/일일알고리즘 (14)
:: ADVANCE ::
http://183.106.113.109/30stair/ncpc_event/ncpc_event.php?pname=ncpc_event 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 31 32 33 #include using namespace std; int main(void) { int n, total, hotel, week, temp, min = 999999; int pri[20], inwon[15]; cin >> n >> total >> hotel >> week; for(int i = 0; i > pri[i]; for(int j = 0; j > inwon[j]; if(inwon[j] >= n) { temp..
http://183.106.113.109/30stair/ladder/ladder.php?pname=ladder 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 #include using namespace std; int ladder[100]; int main(void) { int col, row, path; char alpha = 'A'; cin >> col >> row; for(int i = 0; i > ladder[i]; } for(int i = 1; i
http://183.106.113.109/30stair/cryption/cryption.php?pname=cryption 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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 #include using namespace std; int num[10]; int n, cnt; int checknum(int chnum, int e) { int check, ten = 1, flag = 0; for(int i =..
http://183.106.113.109/30stair/cantoring/cantoring.php?pname=cantoring 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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 #include using namespace std; char data[540000]; long total; void init(long n) { for(int i = 1; i total) return; if(start > n; total = mypow(3, n); init(total); func(1, total..