QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#731383 | #5602. Sun and Moon | jkliao# | WA | 0ms | 3688kb | C++14 | 336b | 2024-11-10 02:52:45 | 2024-11-10 02:52:45 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std;
int main(){
int a, b, c, d;
cin >> a >> b >> c >> d;
int count = 0;
a = b-a;
c = d- c;
for(int i =0; i <= 5000; i++){
if (i % b == a && i % d == c){
cout << i << endl;
break;
}
}
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 0ms
memory: 3504kb
input:
3 10 1 2
output:
7
result:
ok single line: '7'
Test #2:
score: 0
Accepted
time: 0ms
memory: 3688kb
input:
27 32 39 41
output:
453
result:
ok single line: '453'
Test #3:
score: 0
Accepted
time: 0ms
memory: 3560kb
input:
43 48 39 50
output:
1061
result:
ok single line: '1061'
Test #4:
score: 0
Accepted
time: 0ms
memory: 3688kb
input:
44 45 11 22
output:
451
result:
ok single line: '451'
Test #5:
score: 0
Accepted
time: 0ms
memory: 3624kb
input:
36 45 14 41
output:
1134
result:
ok single line: '1134'
Test #6:
score: 0
Accepted
time: 0ms
memory: 3504kb
input:
1 22 30 39
output:
87
result:
ok single line: '87'
Test #7:
score: 0
Accepted
time: 0ms
memory: 3564kb
input:
18 40 4 6
output:
62
result:
ok single line: '62'
Test #8:
score: 0
Accepted
time: 0ms
memory: 3556kb
input:
34 39 1 7
output:
83
result:
ok single line: '83'
Test #9:
score: 0
Accepted
time: 0ms
memory: 3628kb
input:
27 49 12 30
output:
708
result:
ok single line: '708'
Test #10:
score: 0
Accepted
time: 0ms
memory: 3624kb
input:
49 50 33 36
output:
651
result:
ok single line: '651'
Test #11:
score: 0
Accepted
time: 0ms
memory: 3680kb
input:
22 26 39 45
output:
186
result:
ok single line: '186'
Test #12:
score: 0
Accepted
time: 0ms
memory: 3624kb
input:
11 13 21 28
output:
119
result:
ok single line: '119'
Test #13:
score: 0
Accepted
time: 0ms
memory: 3560kb
input:
16 36 10 23
output:
128
result:
ok single line: '128'
Test #14:
score: 0
Accepted
time: 0ms
memory: 3544kb
input:
11 23 42 49
output:
840
result:
ok single line: '840'
Test #15:
score: -100
Wrong Answer
time: 0ms
memory: 3632kb
input:
31 39 0 31
output:
result:
wrong answer 1st lines differ - expected: '1178', found: ''