int check(const char *s) { if (strlen(s) != 8) return 0;...
Prompt
int check(const char *s) { if (strlen(s) != 8) return 0; unsigned int h = 0x1505; for (int i = 0; i < 8; i++) h = (h * 33) ^ s[i]; return h == 0x3A4F2C1B; // ๊ฐ์ ๊ฐ } ์ด ํจ์๊ฐ ์ด๋ค ์๊ณ ๋ฆฌ์ฆ์ธ์ง ์๋ณํ๊ณ , ์ฌ๋ฐ๋ฅธ ์ ๋ ฅ์ ์ฐพ๋ ํ์ค์ ์ธ ์ ๋ต(์ญ์ฐ ๊ฐ๋ฅ ์ฌ๋ถ, ํ์ ๊ณต๊ฐ, ๋๊ตฌ)์ ์ ์ํด๋ผ.
Drag to resize
Drag to resize
Drag to resize