QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#842327#9962. Diminishing Fractionsucup-team5100#WA 3ms4036kbC++141.6kb2025-01-04 11:48:462025-01-04 11:48:46

详细

Test #1:

score: 100
Accepted
time: 3ms
memory: 4036kb

input:

2
3
6

output:

2/3+1/2-1/1
3/5+3/4+2/3-1/1-1/1

result:

ok OK, t = 2

Test #2:

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

input:

1
1

output:

1/1

result:

ok OK, t = 1

Test #3:

score: 0
Accepted
time: 3ms
memory: 4020kb

input:

10
1
2
3
4
5
6
7
8
9
10

output:

1/1
1/2
2/3+1/2-1/1
3/4+1/3-1/1
3/5+3/4+2/3-1/1-1/1
3/5+3/4+2/3-1/1-1/1
2/7+4/5+1/4+2/3-1/1-1/1
1/8+1/7+2/5+1/3-1/1
1/9+3/8+5/7+4/5-1/1-1/1
1/9+3/8+5/7+4/5-1/1-1/1

result:

ok OK, t = 10

Test #4:

score: -100
Wrong Answer
time: 3ms
memory: 4036kb

input:

54
7
20
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
3
47
81

output:

2/7+4/5+1/4+2/3-1/1-1/1
1?/1C+1</1A+1?/1@+4/1=+9/1;+5/9+2/7+3/5-1/1-1/1-1/1-1/1-1/1
1/2
2/3+1/2-1/1
3/4+1/3-1/1
3/5+3/4+2/3-1/1-1/1
3/5+3/4+2/3-1/1-1/1
2/7+4/5+1/4+2/3-1/1-1/1
1/8+1/7+2/5+1/3-1/1
1/9+3/8+5/7+4/5-1/1-1/1
1/9+3/8+5/7+4/5-1/1-1/1
1/1;+5/9+1/8+3/7+4/5-1/1-1/1
1/1;+5/9+1/8+3/7+4/5-1/1-1/...

result:

wrong answer Expected '/' in fraction