QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#587370#45. Tutte多项式yellowbird100 ✓1722ms364220kbC++1710.9kb2024-09-24 19:41:092024-09-24 19:41:09

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 16
Accepted

Test #1:

score: 16
Accepted
time: 0ms
memory: 3908kb

input:

5
0 1 1 0 1
1 0 0 1 1
1 0 0 1 1
0 1 1 0 0
1 1 1 0 0
0 1

output:

6

result:

ok answer is 6

Test #2:

score: 16
Accepted
time: 0ms
memory: 3964kb

input:

5
0 1 1 0 1
1 0 0 1 1
1 0 0 1 1
0 1 1 0 0
1 1 1 0 0
0 2

output:

24

result:

ok answer is 24

Test #3:

score: 16
Accepted
time: 0ms
memory: 3916kb

input:

5
0 1 1 0 1
1 0 0 1 1
1 0 0 1 1
0 1 1 0 0
1 1 1 0 0
1 0

output:

10

result:

ok answer is 10

Test #4:

score: 16
Accepted
time: 0ms
memory: 3812kb

input:

5
0 1 1 0 1
1 0 0 1 1
1 0 0 1 1
0 1 1 0 0
1 1 1 0 0
1 1

output:

24

result:

ok answer is 24

Test #5:

score: 16
Accepted
time: 0ms
memory: 3772kb

input:

5
0 1 1 0 1
1 0 0 1 1
1 0 0 1 1
0 1 1 0 0
1 1 1 0 0
1 2

output:

52

result:

ok answer is 52

Test #6:

score: 16
Accepted
time: 0ms
memory: 3836kb

input:

5
0 1 1 0 1
1 0 0 1 1
1 0 0 1 1
0 1 1 0 0
1 1 1 0 0
2 0

output:

60

result:

ok answer is 60

Test #7:

score: 16
Accepted
time: 0ms
memory: 3896kb

input:

5
0 1 1 0 1
1 0 0 1 1
1 0 0 1 1
0 1 1 0 0
1 1 1 0 0
2 1

output:

86

result:

ok answer is 86

Test #8:

score: 16
Accepted
time: 0ms
memory: 3896kb

input:

7
0 0 1 0 0 0 1
0 0 0 1 0 1 0
1 0 0 0 0 0 0
0 1 0 0 0 1 0
0 0 0 0 0 0 0
0 1 0 1 0 0 0
1 0 0 0 0 0 0
1 1

output:

3

result:

ok answer is 3

Test #9:

score: 16
Accepted
time: 0ms
memory: 3916kb

input:

7
0 0 1 0 0 0 1
0 0 0 1 0 1 0
1 0 0 0 0 0 0
0 1 0 0 0 1 0
0 0 0 0 0 0 0
0 1 0 1 0 0 0
1 0 0 0 0 0 0
1 20020221

output:

20020223

result:

ok answer is 20020223

Test #10:

score: 16
Accepted
time: 0ms
memory: 3780kb

input:

7
0 0 1 0 0 0 1
0 0 0 1 0 1 0
1 0 0 0 0 0 0
0 1 0 0 0 1 0
0 0 0 0 0 0 0
0 1 0 1 0 0 0
1 0 0 0 0 0 0
20020814 1

output:

807453860

result:

ok answer is 807453860

Test #11:

score: 16
Accepted
time: 0ms
memory: 3812kb

input:

7
0 0 1 0 0 0 1
0 0 0 1 0 1 0
1 0 0 0 0 0 0
0 1 0 0 0 1 0
0 0 0 0 0 0 0
0 1 0 1 0 0 0
1 0 0 0 0 0 0
20020814 20020221

output:

307912635

result:

ok answer is 307912635

Test #12:

score: 16
Accepted
time: 0ms
memory: 3824kb

input:

7
0 0 1 0 1 0 1
0 0 0 1 0 1 0
1 0 0 0 0 0 1
0 1 0 0 0 1 0
1 0 0 0 0 0 1
0 1 0 1 0 0 0
1 0 1 0 1 0 0
1 1

output:

24

result:

ok answer is 24

Test #13:

score: 16
Accepted
time: 0ms
memory: 3780kb

input:

7
0 0 1 0 1 0 1
0 0 0 1 0 1 0
1 0 0 0 0 0 1
0 1 0 0 0 1 0
1 0 0 0 0 0 1
0 1 0 1 0 0 0
1 0 1 0 1 0 0
1 20020221

output:

98439924

result:

ok answer is 98439924

Test #14:

score: 16
Accepted
time: 0ms
memory: 3892kb

input:

7
0 0 1 0 1 0 1
0 0 0 1 0 1 0
1 0 0 0 0 0 1
0 1 0 0 0 1 0
1 0 0 0 0 0 1
0 1 0 1 0 0 0
1 0 1 0 1 0 0
20020814 1

output:

705719054

result:

ok answer is 705719054

Test #15:

score: 16
Accepted
time: 0ms
memory: 3904kb

input:

7
0 0 1 0 1 0 1
0 0 0 1 0 1 0
1 0 0 0 0 0 1
0 1 0 0 0 1 0
1 0 0 0 0 0 1
0 1 0 1 0 0 0
1 0 1 0 1 0 0
20020814 20020221

output:

485607933

result:

ok answer is 485607933

Test #16:

score: 16
Accepted
time: 0ms
memory: 3904kb

input:

7
0 1 1 0 1 0 0
1 0 0 1 0 0 1
1 0 0 1 0 0 0
0 1 1 0 1 0 0
1 0 0 1 0 1 0
0 0 0 0 1 0 1
0 1 0 0 0 1 0
1 1

output:

48

result:

ok answer is 48

Test #17:

score: 16
Accepted
time: 0ms
memory: 3780kb

input:

7
0 1 0 0 1 0 1
1 0 1 0 1 1 0
0 1 0 1 0 0 0
0 0 1 0 1 1 0
1 1 0 1 0 0 1
0 1 0 1 0 0 1
1 0 0 0 1 1 0
1 20020221

output:

815810322

result:

ok answer is 815810322

Test #18:

score: 16
Accepted
time: 0ms
memory: 3844kb

input:

7
0 1 1 1 0 0 1
1 0 1 1 1 0 0
1 1 0 1 0 1 0
1 1 1 0 0 0 1
0 1 0 0 0 0 1
0 0 1 0 0 0 1
1 0 0 1 1 1 0
20020814 1

output:

387261289

result:

ok answer is 387261289

Test #19:

score: 16
Accepted
time: 0ms
memory: 3912kb

input:

7
0 0 1 1 1 1 0
0 0 1 1 0 0 0
1 1 0 0 1 1 0
1 1 0 0 0 0 1
1 0 1 0 0 0 1
1 0 1 0 0 0 1
0 0 0 1 1 1 0
20020814 20020221

output:

895603904

result:

ok answer is 895603904

Subtask #2:

score: 20
Accepted

Dependency #1:

100%
Accepted

Test #20:

score: 20
Accepted
time: 1ms
memory: 3948kb

input:

11
0 0 0 1 0 1 1 1 1 0 1
0 0 1 0 1 0 1 1 0 0 0
0 1 0 1 1 0 1 1 1 1 1
1 0 1 0 1 0 0 1 1 1 1
0 1 1 1 0 1 0 0 0 0 1
1 0 0 0 1 0 1 0 0 1 1
1 1 1 0 0 1 0 1 0 1 1
1 1 1 1 0 0 1 0 1 0 0
1 0 1 1 0 0 0 1 0 1 0
0 0 1 1 0 1 1 0 1 0 0
1 0 1 1 1 1 1 0 0 0 0
1 20020221

output:

153595675

result:

ok answer is 153595675

Test #21:

score: 20
Accepted
time: 1ms
memory: 3932kb

input:

11
0 1 0 0 1 1 0 0 1 0 0
1 0 0 0 1 0 0 0 0 1 0
0 0 0 1 1 0 0 1 0 0 1
0 0 1 0 1 0 1 1 0 0 1
1 1 1 1 0 0 0 0 1 0 1
1 0 0 0 0 0 0 0 0 1 1
0 0 0 1 0 0 0 1 1 0 1
0 0 1 1 0 0 1 0 1 0 0
1 0 0 0 1 0 1 1 0 1 1
0 1 0 0 0 1 0 0 1 0 0
0 0 1 1 1 1 1 0 1 0 0
20020814 1

output:

491253731

result:

ok answer is 491253731

Test #22:

score: 20
Accepted
time: 1ms
memory: 4196kb

input:

11
0 0 0 1 1 0 1 0 0 1 0
0 0 1 0 1 1 1 1 0 0 1
0 1 0 1 0 1 0 0 1 1 1
1 0 1 0 1 1 1 0 0 0 1
1 1 0 1 0 1 0 0 1 0 0
0 1 1 1 1 0 0 0 0 0 0
1 1 0 1 0 0 0 1 0 0 0
0 1 0 0 0 0 1 0 0 0 0
0 0 1 0 1 0 0 0 0 0 0
1 0 1 0 0 0 0 0 0 0 1
0 1 1 1 0 0 0 0 0 1 0
20020814 20020221

output:

17689848

result:

ok answer is 17689848

Subtask #3:

score: 14
Accepted

Dependency #1:

100%
Accepted

Dependency #2:

100%
Accepted

Test #23:

score: 14
Accepted
time: 6ms
memory: 8484kb

input:

14
0 1 1 0 0 1 1 0 0 1 1 1 1 0
1 0 1 1 0 0 1 1 1 0 1 0 0 0
1 1 0 1 0 1 0 0 1 1 0 1 0 0
0 1 1 0 1 0 0 1 0 0 0 1 0 1
0 0 0 1 0 1 0 0 1 0 1 0 1 0
1 0 1 0 1 0 1 0 0 0 1 0 0 0
1 1 0 0 0 1 0 0 0 0 0 1 0 0
0 1 0 1 0 0 0 0 0 0 0 0 1 0
0 1 1 0 1 0 0 0 0 0 0 1 1 0
1 0 1 0 0 0 0 0 0 0 1 1 1 1
1 1 0 0 1 1 0 0 0...

output:

171192566

result:

ok answer is 171192566

Test #24:

score: 14
Accepted
time: 6ms
memory: 5304kb

input:

14
0 0 1 0 0 1 0 0 0 1 0 0 1 0
0 0 0 1 0 1 0 1 1 1 1 0 0 0
1 0 0 0 1 1 0 1 0 1 1 1 0 1
0 1 0 0 0 1 0 0 1 1 0 0 1 1
0 0 1 0 0 0 0 1 0 1 1 1 1 0
1 1 1 1 0 0 0 0 1 1 0 0 0 1
0 0 0 0 0 0 0 1 0 1 1 0 0 0
0 1 1 0 1 0 1 0 1 0 1 0 1 0
0 1 0 1 0 1 0 1 0 0 0 0 1 1
1 1 1 1 1 1 1 0 0 0 0 0 1 1
0 1 1 0 1 0 1 1 0...

output:

858770596

result:

ok answer is 858770596

Test #25:

score: 14
Accepted
time: 6ms
memory: 6240kb

input:

14
0 0 0 1 0 1 1 0 1 1 1 1 0 1
0 0 1 0 0 0 1 0 1 0 1 0 0 1
0 1 0 1 0 0 1 0 0 1 0 0 1 1
1 0 1 0 0 0 0 0 1 0 1 0 0 1
0 0 0 0 0 1 1 0 0 1 0 0 0 1
1 0 0 0 1 0 0 0 0 0 0 0 1 0
1 1 1 0 1 0 0 1 0 0 1 1 0 1
0 0 0 0 0 0 1 0 1 0 1 1 0 1
1 1 0 1 0 0 0 1 0 0 1 1 1 0
1 0 1 0 1 0 0 0 0 0 1 1 1 1
1 1 0 1 0 0 1 1 1...

output:

220200163

result:

ok answer is 220200163

Subtask #4:

score: 25
Accepted

Dependency #1:

100%
Accepted

Dependency #2:

100%
Accepted

Dependency #3:

100%
Accepted

Test #26:

score: 25
Accepted
time: 92ms
memory: 27308kb

input:

18
0 0 1 1 0 1 0 1 1 0 0 0 1 1 0 1 1 0
0 0 0 1 0 0 1 1 0 1 0 0 1 1 0 0 1 0
1 0 0 0 1 0 1 1 0 1 1 0 0 0 1 0 1 1
1 1 0 0 0 0 1 0 1 0 0 1 1 1 1 1 0 0
0 0 1 0 0 1 1 1 0 0 0 0 0 0 0 1 0 1
1 0 0 0 1 0 0 0 0 0 0 1 1 1 0 1 0 1
0 1 1 1 1 0 0 0 0 1 1 1 0 1 0 1 0 0
1 1 1 0 1 0 0 0 0 1 0 0 0 1 0 1 1 1
1 0 0 1 0...

output:

150803960

result:

ok answer is 150803960

Test #27:

score: 25
Accepted
time: 148ms
memory: 26672kb

input:

18
0 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 0 0
1 0 0 0 1 1 1 0 0 0 1 1 0 0 1 1 1 0
1 0 0 1 1 0 1 1 0 0 1 1 0 1 0 0 0 1
0 0 1 0 0 1 0 0 0 1 1 0 0 0 0 1 0 0
1 1 1 0 0 0 0 0 1 0 1 0 1 0 1 0 1 0
0 1 0 1 0 0 0 1 1 1 0 1 0 1 1 0 0 0
1 1 1 0 0 0 0 1 0 1 1 1 1 0 0 1 0 1
0 0 1 0 0 1 1 0 0 1 0 1 0 1 1 1 0 1
1 0 0 0 1...

output:

295845902

result:

ok answer is 295845902

Test #28:

score: 25
Accepted
time: 98ms
memory: 51996kb

input:

18
0 0 0 1 1 0 1 1 1 0 1 1 0 0 1 0 1 0
0 0 0 0 1 0 0 0 1 1 1 1 0 0 1 0 1 1
0 0 0 1 1 1 0 1 1 1 0 0 0 0 1 1 1 1
1 0 1 0 0 1 1 0 1 0 1 1 1 0 1 0 0 1
1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 1 1 0
0 0 1 1 1 0 0 1 1 1 0 1 0 1 1 0 1 1
1 0 0 1 1 0 0 0 0 0 1 1 0 0 0 0 1 0
1 0 1 0 1 1 0 0 1 1 0 0 0 0 0 0 0 0
1 1 1 1 1...

output:

82075728

result:

ok answer is 82075728

Subtask #5:

score: 25
Accepted

Dependency #1:

100%
Accepted

Dependency #2:

100%
Accepted

Dependency #3:

100%
Accepted

Dependency #4:

100%
Accepted

Test #29:

score: 25
Accepted
time: 1035ms
memory: 184128kb

input:

21
0 0 0 1 0 0 1 1 1 1 1 0 1 0 0 0 1 0 0 1 0
0 0 1 0 1 1 0 0 1 1 1 1 0 0 1 1 0 1 0 1 0
0 1 0 0 1 1 0 1 0 1 0 1 0 1 0 0 0 0 1 0 1
1 0 0 0 1 0 0 1 0 0 0 1 0 0 1 1 0 1 0 0 0
0 1 1 1 0 0 0 0 0 1 1 0 1 1 1 1 0 1 0 1 0
0 1 1 0 0 0 1 1 0 1 0 0 1 1 1 0 1 1 0 0 0
1 0 0 0 0 1 0 1 0 0 1 0 1 1 1 1 0 0 1 1 0
1 0...

output:

794685740

result:

ok answer is 794685740

Test #30:

score: 25
Accepted
time: 1722ms
memory: 184000kb

input:

21
0 1 0 0 0 1 0 0 1 0 1 1 0 0 1 1 1 1 1 1 0
1 0 1 1 1 0 1 1 0 1 1 0 1 0 1 0 1 0 0 0 1
0 1 0 0 0 0 0 1 1 0 0 1 0 1 1 1 1 0 0 1 0
0 1 0 0 0 1 1 1 1 0 0 1 0 0 0 1 1 1 0 1 1
0 1 0 0 0 1 0 0 0 0 0 0 1 1 0 1 1 1 1 1 0
1 0 0 1 1 0 0 0 1 1 1 0 1 1 1 0 1 1 0 1 0
0 1 0 1 0 0 0 1 1 0 0 1 0 0 0 0 1 0 0 0 1
0 1...

output:

584501085

result:

ok answer is 584501085

Test #31:

score: 25
Accepted
time: 1148ms
memory: 364220kb

input:

21
0 1 1 0 0 0 0 0 0 1 1 0 1 0 0 1 1 0 1 0 1
1 0 0 0 0 1 0 0 1 1 0 0 1 1 1 0 0 0 0 0 0
1 0 0 0 0 1 0 0 0 1 0 0 1 0 1 1 0 1 0 1 1
0 0 0 0 1 0 0 1 1 0 1 0 0 1 0 1 0 1 1 0 0
0 0 0 1 0 1 0 1 1 0 0 0 0 1 0 1 0 0 1 0 0
0 1 1 0 1 0 0 0 0 1 0 0 0 1 1 1 1 0 1 0 0
0 0 0 0 0 0 0 1 1 1 1 1 0 0 0 1 1 1 1 1 0
0 0...

output:

114086868

result:

ok answer is 114086868