kyk2 가 처음에 짠 코든데 더 느린 줄 알았는데 이게 왜 더 빨랔ㅋㅋㅋㅋㅋㅋㅋㅋㅋㅋ


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
namespace kyky
{
 
    bool is_pangram(const char* str)
    {
        int ret = 0;
        while (*str) {
            ret |= 1 << ((*str++ & '_'- 65);
        }
        ret &= ((1 << 26- 1);
        return ret == ((1 << 26- 1);
    }
 
 
 
    void    run(void* dst)
    {
        bool* b = (bool*)dst;
        b[0= is_pangram(src1);
        b[1= is_pangram(src2);
    }
 
}
 
 
//------------------------------+---------------------------------------------------------------
namespace kyk2
{
 
    bool is_pangram(const char* str)
    {
        bool alpha[128= {};
        int i = 0;
        while (str[i]) {
            alpha[(str[i++& '_')] = 1;
        }
        for (i = 65; i <= 90++i)
            if (!alpha[i])return 0;
        return 1;
    }
 
 
 
 
    void    run(void* dst)
    {
        bool* b = (bool*)dst;
        b[0= is_pangram(src1);
        b[1= is_pangram(src2);
    }
 
}
cs