質問編集履歴
1
tmp = ((m - 30) / 5) + 80;の下に一文を追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -28,72 +28,70 @@
|
|
28
28
|
|
29
29
|
```c++
|
30
30
|
|
31
|
-
#include <bits/stdc++.h>
|
31
|
+
#include <bits/stdc++.h>
|
32
32
|
|
33
|
-
using namespace std;
|
33
|
+
using namespace std;
|
34
34
|
|
35
|
+
|
35
36
|
|
37
|
+
int main() {
|
36
38
|
|
37
|
-
|
39
|
+
double m;
|
38
40
|
|
39
|
-
|
41
|
+
cin >> m;
|
40
42
|
|
41
|
-
|
43
|
+
m /= 1000;
|
42
44
|
|
43
|
-
|
45
|
+
string VV;
|
44
46
|
|
45
|
-
|
47
|
+
int tmp;
|
46
48
|
|
47
|
-
|
49
|
+
|
48
50
|
|
51
|
+
if(m < 0.1) {
|
49
52
|
|
53
|
+
VV = "00";
|
50
54
|
|
51
|
-
if(m
|
55
|
+
} else if(m >= 0.1 && m <= 5) {
|
52
56
|
|
53
|
-
|
57
|
+
tmp = m * 10;
|
54
58
|
|
55
|
-
|
59
|
+
if(m < 10) {
|
56
60
|
|
57
|
-
|
61
|
+
VV = '0' + to_string(tmp);
|
58
62
|
|
59
|
-
|
63
|
+
} else {
|
60
64
|
|
61
|
-
VV =
|
65
|
+
VV = to_string(tmp);
|
66
|
+
|
67
|
+
}
|
68
|
+
|
69
|
+
} else if(m >= 6 && m <= 30) {
|
70
|
+
|
71
|
+
tmp = m + 50;
|
72
|
+
|
73
|
+
VV = to_string(tmp);
|
74
|
+
|
75
|
+
} else if(m >= 35 && m <= 70) {
|
76
|
+
|
77
|
+
tmp = ((m - 30) / 5) + 80;
|
78
|
+
|
79
|
+
VV = to_string(tmp);
|
80
|
+
|
81
|
+
} else {
|
82
|
+
|
83
|
+
VV = "89";
|
62
84
|
|
63
85
|
}
|
64
86
|
|
65
|
-
|
87
|
+
|
66
88
|
|
67
|
-
|
89
|
+
cout << VV << endl;
|
68
90
|
|
69
|
-
|
91
|
+
|
70
92
|
|
71
|
-
} else if (m >= 6 && m <= 30) {
|
72
|
-
|
73
|
-
t
|
93
|
+
return 0;
|
74
|
-
|
75
|
-
VV = to_string(tmp);
|
76
|
-
|
77
|
-
} else if (m >= 35 && m <= 70) {
|
78
|
-
|
79
|
-
tmp = ((m - 30) / 5) + 80;
|
80
94
|
|
81
95
|
}
|
82
96
|
|
83
|
-
else {
|
84
|
-
|
85
|
-
VV = "89";
|
86
|
-
|
87
|
-
}
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
cout << VV << endl;
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
return 0;
|
96
|
-
|
97
|
-
}
|
98
|
-
|
99
97
|
```
|