QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#484208#7698. ISBN ConversionZhangYiDeWA 0ms3632kbC++111.8kb2024-07-19 16:49:542024-07-19 16:49:54

详细

Test #1:

score: 100
Accepted
time: 0ms
memory: 3632kb

input:

4
3-540-4258-02
039428013X
3-540-42580-2
0-14-028333-3

output:

invalid
978-0394280134
978-3-540-42580-9
invalid

result:

ok 4 lines

Test #2:

score: -100
Wrong Answer
time: 0ms
memory: 3576kb

input:

25
----------
-----------
------------
-------------
XXXXXXXXXX
XXXXXXXXXXX
XXXXXXXXXXXX
XXXXXXXXXXXXX
---------X
----------X
-----------X
01234567890
012345678901
0123456789012
-0123456789-
0123456789-
-0123456789
01--23456789
012345678--9
0123456789--
--0123456789
98765432-1
987-654-321
87-645-32-...

output:

invalid
invalid
invalid
invalid
978-XXXXXXXXX2
978-XXXXXXXXXX2
invalid
invalid
invalid
invalid
invalid
978-01234567897
invalid
invalid
invalid
invalid
invalid
978-01--23456786
978-012345678--6
invalid
invalid
978-98765432-10
978-987-654-3210
978-87-645-32-5
invalid

result:

wrong answer 5th lines differ - expected: 'invalid', found: '978-XXXXXXXXX2'