void phase_6(char *input){ int nums[6]; read_six_numbers(input, nums); int i = 0; while(i < 6){ if(nums[i] - 1 > 4){ explode_bomb(); } i++; } i = 0; while(i < 6){ int j = i + 1; while(j < 6){ if(nums[i] == nums[j]){ explode_bomb(); } j++; } i++; } struct node{ int val; struct node *next; }; struct node *head, *cur, *prev; head = NULL; i = 0; while(i < 6){ int val = nums[i]; cur = malloc(sizeof(struct node)); cur->val = val; cur->next = NULL; if(head == NULL){ head = cur; }else{ prev->next = cur; } prev = cur; i++; } i = 0; while(i < 6){ cur = head; int j = 0; while(j < 5 - i){ if(cur->val > cur->next->val){ int temp = cur->val; cur->val = cur->next->val; cur->next->val = temp; } cur = cur->next; j++; } i++; } cur = head; i = 0; while(i < 5){ if(cur->val >= cur->next->val){ explode_bomb(); } cur = cur->next; i++; }

8048dc5	56 	push esi 8048dc6	53 	push ebx 8048dc7	83 ec 44 	sub $0x44esp 8048dca	8d 44 24 10 	lea 0x10espeax 8048dce	89 44 24 04

原文地址: https://www.cveoy.top/t/topic/cQtX 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录