编号 题目 状态 分数 总时间 内存 代码 / 答案文件 提交者 提交时间
#5806 #1057. 圆形切割 Wrong Answer 15 53 ms 508 K C++ 17 / 928 B t330034045 2024-08-17 15:40:20
显示原始代码
#include <iostream>
#include <vector>
#include <algorithm>

using namespace std;

int main() {
    int n, m;
    cin >> n >> m;  // 读取切割次数和每次切割的角度

    // 初始化切割点角度数组
    vector<int> cuts(n + 1, 0);
    cuts[0] = 0;  // 第一个切割点在0度

    // 模拟切割过程
    for (int i = 1; i <= n; ++i) {
        // 每次切割前顺时针旋转m度
        cuts[i] = (cuts[i - 1] + m) % 360;
    }

    // 计算最大的圆心角
    int max_angle = 0;
    for (int i = 1; i < n; ++i) {
        // 圆心角是两个相邻切割点角度的差值
        max_angle = max(max_angle, (cuts[i] - cuts[i - 1] + 360) % 360);
    }
    // 考虑最后一个切割点和第一个切割点之间的圆心角
    max_angle = max(max_angle, (360 - cuts[n - 1] + cuts[0]) % 360);

    cout << max_angle << endl;  // 输出最大的圆心角

    return 0;
}
子任务 #1
Wrong Answer
得分:15
测试点 #1
Wrong Answer
得分:0
用时:2 ms
内存:384 KiB

输入文件(1.in

1
71

答案文件(1.out

289

用户输出

0

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0
测试点 #2
Accepted
得分:100
用时:4 ms
内存:284 KiB

输入文件(2.in

2
278 57

答案文件(2.out

278

用户输出

278

系统信息

Exited with return code 0
测试点 #3
Wrong Answer
得分:0
用时:3 ms
内存:404 KiB

输入文件(3.in

5
103 129 198 329 263

答案文件(3.out

129

用户输出

308

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0
测试点 #4
Wrong Answer
得分:0
用时:3 ms
内存:276 KiB

输入文件(4.in

241
66 286 326 327 357 177 318 291 258 217 132 120 85 304 40 45 146 198 6 36 131 65 324 88 306 163 4
<800 bytes omitted>

答案文件(4.out

8

用户输出

66

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0
测试点 #5
Wrong Answer
得分:0
用时:2 ms
内存:272 KiB

输入文件(5.in

4
239 57 186 108

答案文件(5.out

122

用户输出

239

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0
测试点 #6
Wrong Answer
得分:0
用时:3 ms
内存:276 KiB

输入文件(6.in

3
134 31 159

答案文件(6.out

159

用户输出

134

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0
测试点 #7
Accepted
得分:100
用时:3 ms
内存:320 KiB

输入文件(7.in

5
145 173 12 28 261

答案文件(7.out

145

用户输出

145

系统信息

Exited with return code 0
测试点 #8
Wrong Answer
得分:0
用时:2 ms
内存:508 KiB

输入文件(8.in

4
45 147 206 93

答案文件(8.out

168

用户输出

225

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0
测试点 #9
Wrong Answer
得分:0
用时:2 ms
内存:356 KiB

输入文件(9.in

5
107 193 159 192 164

答案文件(9.out

184

用户输出

292

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0
测试点 #10
Wrong Answer
得分:0
用时:3 ms
内存:384 KiB

输入文件(10.in

10
242 223 357 43 283 126 307 76 345 264

答案文件(10.out

118

用户输出

342

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0
测试点 #11
Wrong Answer
得分:0
用时:3 ms
内存:356 KiB

输入文件(11.in

4
245 164 353 12

答案文件(11.out

191

用户输出

345

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0
测试点 #12
Wrong Answer
得分:0
用时:3 ms
内存:384 KiB

输入文件(12.in

232
134 72 256 93 39 199 120 343 288 345 358 155 223 104 30 100 269 180 88 203 197 1 71 76 194 312 1
<760 bytes omitted>

答案文件(12.out

10

用户输出

134

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0
测试点 #13
Wrong Answer
得分:0
用时:4 ms
内存:392 KiB

输入文件(13.in

3
187 247 145

答案文件(13.out

141

用户输出

346

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0
测试点 #14
Wrong Answer
得分:0
用时:2 ms
内存:352 KiB

输入文件(14.in

2
201 262

答案文件(14.out

159

用户输出

201

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0
测试点 #15
Wrong Answer
得分:0
用时:2 ms
内存:312 KiB

输入文件(15.in

5
246 6 193 123 348

答案文件(15.out

111

用户输出

246

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0
测试点 #16
Wrong Answer
得分:0
用时:2 ms
内存:280 KiB

输入文件(16.in

5
10 85 25 336 122

答案文件(16.out

142

用户输出

320

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0
测试点 #17
Accepted
得分:100
用时:2 ms
内存:380 KiB

输入文件(17.in

3
240 10 30

答案文件(17.out

240

用户输出

240

系统信息

Exited with return code 0
测试点 #18
Wrong Answer
得分:0
用时:3 ms
内存:384 KiB

输入文件(18.in

1
154

答案文件(18.out

206

用户输出

0

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0
测试点 #19
Wrong Answer
得分:0
用时:3 ms
内存:400 KiB

输入文件(19.in

3
174 283 128

答案文件(19.out

135

用户输出

174

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0
测试点 #20
Wrong Answer
得分:0
用时:2 ms
内存:356 KiB

输入文件(20.in

2
108 213

答案文件(20.out

213

用户输出

252

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0