用户输出
5
Special Judge 信息
Wrong Answer | Jury has better answer: jans = 11, pans = 5
系统信息
Exited with return code 0
编号 | 题目 | 状态 | 分数 | 总时间 | 内存 | 代码 / 答案文件 | 提交者 | 提交时间 |
---|---|---|---|---|---|---|---|---|
#25580 | #1145. ddd 和渡渡鸟 | Wrong Answer | 6 | 59 ms | 360 K | C++ 17 (Clang) / 320 B | q3540555 | 2020-05-27 15:05:04 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
ll gcd(ll a, ll b) { return b ? a : gcd(b, a % b); }
int main() {
ll a, b;
cin >> a >> b;
ll gab = gcd(a, b);
ll bas = (a / gab) + (b / gab) - 2;
ll ans = (bas + 1) * (gab - 1) + bas;
cout << ans << endl;
}
用户输出
5
Special Judge 信息
Wrong Answer | Jury has better answer: jans = 11, pans = 5
系统信息
Exited with return code 0
419
36 36 36 36 36 36 36 36 36 36 -385 36 36 36 36 36 36 36 36 36 36 36 -385 36 36 36 36 36 36 36 36
<1231 bytes omitted>
用户输出
-1
Special Judge 信息
Wrong Answer | Integer parameter [name=n] equals to -1, violates the range [0, 1000000000]
系统信息
Exited with return code 0
11223
3929 -7296 3929 3929 -7296 3929 3929 -7296 3929 3929 -7296 3929 3929 -7296 3929 3929 -7296 392
<59949 bytes omitted>
用户输出
4493
Special Judge 信息
Wrong Answer | Jury has better answer: jans = 11223, pans = 4493
系统信息
Exited with return code 0
174689
1 1 1 1 1 1 1 1 -46349 1 1 1 1 1 1 1 1 -46349 1 1 1 1 1 1 1 1 128350 1 1 1 1 1 1 1 1 -46349 1
<446330 bytes omitted>
用户输出
-1
Special Judge 信息
Wrong Answer | Integer parameter [name=n] equals to -1, violates the range [0, 1000000000]
系统信息
Exited with return code 0
188827
1 -51075 1 -51075 1 137755 1 -51075 1 -51075 1 -51075 1 137755 1 -51075 1 -51075 1 -51075 1 1
<849626 bytes omitted>
用户输出
-1
Special Judge 信息
Wrong Answer | Integer parameter [name=n] equals to -1, violates the range [0, 1000000000]
系统信息
Exited with return code 0
210661
1 -33215 1 -33215 1 -33215 1 -33215 1 -33215 1 177449 1 -33215 1 -33215 1 -33215 1 -33215 1 -
<947879 bytes omitted>
用户输出
190189
Special Judge 信息
Wrong Answer | Jury has better answer: jans = 210661, pans = 190189
系统信息
Exited with return code 0
366169
1 1 1 1 1 1 -102157 1 1 1 1 1 1 -102157 1 1 1 1 1 1 264020 1 1 1 1 1 1 -102157 1 1 1 1 1 1 -1
<1031507 bytes omitted>
用户输出
238881
Special Judge 信息
Wrong Answer | Jury has better answer: jans = 366169, pans = 238881
系统信息
Exited with return code 0
399999
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
<799921 bytes omitted>
用户输出
-1
Special Judge 信息
Wrong Answer | Integer parameter [name=n] equals to -1, violates the range [0, 1000000000]
系统信息
Exited with return code 0
599997
2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
<1199907 bytes omitted>
用户输出
-1
Special Judge 信息
Wrong Answer | Integer parameter [name=n] equals to -1, violates the range [0, 1000000000]
系统信息
Exited with return code 0
599997
-2 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2 -2
<1799902 bytes omitted>
用户输出
299998
Special Judge 信息
Wrong Answer | Jury has better answer: jans = 599997, pans = 299998
系统信息
Exited with return code 0
390556
191381 -199177 191381 -199177 191381 -199177 191381 -199177 191381 -199177 191381 -199177 191
<2925179 bytes omitted>
用户输出
198885
Special Judge 信息
Wrong Answer | Jury has better answer: jans = 390556, pans = 198885
系统信息
Exited with return code 0
292643
1 -15589 1 -15589 1 -15589 1 -15589 1 -15589 1 -15589 1 -15589 1 -15589 1 -15589 1 -15589 1 -
<1316798 bytes omitted>
用户输出
-1
Special Judge 信息
Wrong Answer | Integer parameter [name=n] equals to -1, violates the range [0, 1000000000]
系统信息
Exited with return code 0
517013
1 1 -105107 1 1 -105107 1 1 -105107 1 1 411910 1 1 -105107 1 1 -105107 1 1 -105107 1 1 -10510
<2032921 bytes omitted>
用户输出
-1
Special Judge 信息
Wrong Answer | Integer parameter [name=n] equals to -1, violates the range [0, 1000000000]
系统信息
Exited with return code 0
599995
1 3 1 3 1 3 1 3 1 3 1 3 1 3 1 3 1 3 1 3 1 3 1 3 1 3 1 3 1 3 1 3 1 3 1 3 1 3 1 3 1 3 1 3 1 3 1
<1199903 bytes omitted>
用户输出
-1
Special Judge 信息
Wrong Answer | Integer parameter [name=n] equals to -1, violates the range [0, 1000000000]
系统信息
Exited with return code 0
用户输出
0
Special Judge 信息
Accepted | Correct. answer = 0
系统信息
Exited with return code 0