QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#79474#2464. Taxed EditorZhangYiDeWA 141ms5724kbC++1.4kb2023-02-20 09:34:262023-02-20 09:34:29

详细

Test #1:

score: 100
Accepted
time: 2ms
memory: 3328kb

input:

100 0
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 1
1 ...

output:

100

result:

ok single line: '100'

Test #2:

score: 0
Accepted
time: 1ms
memory: 3432kb

input:

100 0
1 1
1 2
1 3
1 4
1 5
1 6
1 7
1 8
1 9
1 10
1 11
1 12
1 13
1 14
1 15
1 16
1 17
1 18
1 19
1 20
1 21
1 22
1 23
1 24
1 25
1 26
1 27
1 28
1 29
1 30
1 31
1 32
1 33
1 34
1 35
1 36
1 37
1 38
1 39
1 40
1 41
1 42
1 43
1 44
1 45
1 46
1 47
1 48
1 49
1 50
1 51
1 52
1 53
1 54
1 55
1 56
1 57
1 58
1 59
1 60
1 6...

output:

1

result:

ok single line: '1'

Test #3:

score: 0
Accepted
time: 2ms
memory: 3408kb

input:

100 99
1 1
1 2
1 3
1 4
1 5
1 6
1 7
1 8
1 9
1 10
1 11
1 12
1 13
1 14
1 15
1 16
1 17
1 18
1 19
1 20
1 21
1 22
1 23
1 24
1 25
1 26
1 27
1 28
1 29
1 30
1 31
1 32
1 33
1 34
1 35
1 36
1 37
1 38
1 39
1 40
1 41
1 42
1 43
1 44
1 45
1 46
1 47
1 48
1 49
1 50
1 51
1 52
1 53
1 54
1 55
1 56
1 57
1 58
1 59
1 60
1 ...

output:

1

result:

ok single line: '1'

Test #4:

score: 0
Accepted
time: 2ms
memory: 3320kb

input:

100 0
1 40
1 41
1 42
1 3
1 20
1 4
1 5
1 86
1 87
1 13
1 14
1 1
1 15
1 16
1 18
1 19
1 21
1 22
1 93
1 94
1 74
1 95
1 96
1 23
1 25
1 29
1 30
1 31
1 53
1 54
1 88
1 89
1 17
1 6
1 7
1 8
1 9
1 10
1 11
1 12
1 75
1 55
1 56
1 57
1 58
1 59
1 60
1 61
1 62
1 63
1 64
1 65
1 66
1 67
1 68
1 69
1 70
1 71
1 72
1 73
1 ...

output:

1

result:

ok single line: '1'

Test #5:

score: 0
Accepted
time: 0ms
memory: 3568kb

input:

100 0
2 40
2 41
2 42
2 3
2 20
2 4
2 5
2 86
2 87
2 13
2 14
2 1
2 15
2 16
2 18
2 19
2 21
2 22
2 93
2 94
2 74
2 95
2 96
2 23
2 25
2 29
2 30
2 31
2 53
2 54
2 88
2 89
2 17
2 6
2 7
2 8
2 9
2 10
2 11
2 12
2 75
2 55
2 56
2 57
2 58
2 59
2 60
2 61
2 62
2 63
2 64
2 65
2 66
2 67
2 68
2 69
2 70
2 71
2 72
2 73
2 ...

output:

2

result:

ok single line: '2'

Test #6:

score: 0
Accepted
time: 2ms
memory: 3536kb

input:

100 1
2 40
2 41
2 42
2 3
2 20
2 4
2 5
2 86
2 87
2 13
2 14
2 1
2 15
2 16
2 18
2 19
2 21
2 22
2 93
2 94
2 74
2 95
2 96
2 23
2 25
2 29
2 30
2 31
2 53
2 54
2 88
2 89
2 17
2 6
2 7
2 8
2 9
2 10
2 11
2 12
2 75
2 55
2 56
2 57
2 58
2 59
2 60
2 61
2 62
2 63
2 64
2 65
2 66
2 67
2 68
2 69
2 70
2 71
2 72
2 73
2 ...

output:

2

result:

ok single line: '2'

Test #7:

score: 0
Accepted
time: 0ms
memory: 3396kb

input:

100 50
2 40
2 41
2 42
2 3
2 20
2 4
2 5
2 86
2 87
2 13
2 14
2 1
2 15
2 16
2 18
2 19
2 21
2 22
2 93
2 94
2 74
2 95
2 96
2 23
2 25
2 29
2 30
2 31
2 53
2 54
2 88
2 89
2 17
2 6
2 7
2 8
2 9
2 10
2 11
2 12
2 75
2 55
2 56
2 57
2 58
2 59
2 60
2 61
2 62
2 63
2 64
2 65
2 66
2 67
2 68
2 69
2 70
2 71
2 72
2 73
2...

output:

1

result:

ok single line: '1'

Test #8:

score: 0
Accepted
time: 141ms
memory: 5724kb

input:

100000 0
1000000000 1
1000000000 1
1000000000 1
1000000000 1
1000000000 1
1000000000 1
1000000000 1
1000000000 1
1000000000 1
1000000000 1
1000000000 1
1000000000 1
1000000000 1
1000000000 1
1000000000 1
1000000000 1
1000000000 1
1000000000 1
1000000000 1
1000000000 1
1000000000 1
1000000000 1
10000...

output:

100000000000000

result:

ok single line: '100000000000000'

Test #9:

score: -100
Wrong Answer
time: 71ms
memory: 4468kb

input:

46786 26474
972646846 4838
253000777 9895
844739410 3953
740725829 2432
569863348 8835
775252385 8003
346981464 6141
305937051 1941
499745631 6513
398984816 9556
387704708 890
89926161 9661
760454705 2946
910581384 3616
946296579 5216
964100071 7349
178904063 104
732671873 9766
468959891 3677
214314...

output:

491636807

result:

wrong answer 1st lines differ - expected: '442908028', found: '491636807'