UOJ Logo

NOI.AC

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#209755#3777. 奇因子Allen123456hello10073ms1172kbC++11347b2024-08-05 08:47:482024-08-05 12:09:43

answer

#include <bits/stdc++.h>
using namespace std;
#pragma GCC optimize(2)
typedef long long LL;
LL jiou[2];
void solve(){
    memset(jiou,0,sizeof jiou);
    LL n;
    scanf("%lld",&n);
    puts((n&1)?"YES":(((n>>1)&1)?"OR":"NO"));
    return;
}
int main(){
    int T;
    scanf("%d",&T);
    ++T;while (--T){solve();}
    return 0;
}

详细

小提示:点击横条可展开更详细的信息

Test #1:

score: 10
Accepted
time: 0ms
memory: 1168kb

input:

20
302118333
1054710289
1418190703
939730465
1907627903
1349259461
1979398203
478411255
731277843
11...

output:

YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES

result:

ok 20 tokens

Test #2:

score: 10
Accepted
time: 26ms
memory: 1172kb

input:

200000
304818619
15806543
1058045247
970655479
1761754839
624461877
427470553
1758619443
1702604597
...

output:

YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
YES
...

result:

ok 200000 tokens

Test #3:

score: 10
Accepted
time: 0ms
memory: 1168kb

input:

4
33301
55497
1118
65948

output:

YES
YES
OR
NO

result:

ok 4 tokens

Test #4:

score: 10
Accepted
time: 0ms
memory: 1172kb

input:

10
26451
90732
46428
69649
84428
3821
87098
22756
1599
20377

output:

YES
NO
NO
YES
NO
YES
OR
NO
YES
YES

result:

ok 10 tokens

Test #5:

score: 10
Accepted
time: 0ms
memory: 1172kb

input:

5
791815840
923996527
447569082
569907594
16791438

output:

NO
YES
OR
OR
OR

result:

ok 5 tokens

Test #6:

score: 10
Accepted
time: 0ms
memory: 1172kb

input:

10
933677171
80672280
871026982
686999126
222809490
328782598
546250569
999606744
230235754
602991855

output:

YES
NO
OR
OR
OR
OR
YES
NO
OR
YES

result:

ok 10 tokens

Test #7:

score: 10
Accepted
time: 0ms
memory: 1172kb

input:

100
988836790788566373
976956787252991603
157773141109060225
439110675991632875
727024619263000014
1...

output:

YES
YES
YES
YES
OR
OR
NO
YES
YES
NO
YES
NO
YES
OR
YES
OR
OR
YES
YES
OR
NO
YES
OR
YES
OR
OR
NO
OR
NO
...

result:

ok 100 tokens

Test #8:

score: 10
Accepted
time: 0ms
memory: 1168kb

input:

10000
671158605347838243
513249126770244666
117342941221796189
300423738741787656
469288152380113631...

output:

YES
OR
YES
NO
YES
NO
OR
NO
YES
OR
NO
NO
OR
YES
NO
OR
YES
NO
OR
OR
NO
YES
YES
NO
OR
YES
NO
NO
OR
YES
...

result:

ok 10000 tokens

Test #9:

score: 10
Accepted
time: 15ms
memory: 1168kb

input:

100000
869117640366062808
514512386603976360
82890967616142404
445654498537476894
338140147330517001...

output:

NO
NO
NO
OR
YES
OR
NO
YES
YES
YES
YES
YES
YES
OR
OR
OR
YES
OR
YES
YES
YES
OR
YES
OR
YES
YES
YES
NO
Y...

result:

ok 100000 tokens

Test #10:

score: 10
Accepted
time: 32ms
memory: 1172kb

input:

200000
877229846391692286
99922075583325613
876495120305845373
333161697972281581
752971854673700989...

output:

OR
YES
YES
YES
YES
OR
YES
OR
YES
YES
OR
OR
NO
YES
NO
NO
OR
OR
YES
NO
NO
YES
YES
YES
OR
YES
OR
OR
YES...

result:

ok 200000 tokens

Extra Test:

score: 0
Extra Test Passed