Task: | Graph painting |
Sender: | warbaque |
Submission time: | 2016-09-24 13:32:16 +0300 |
Language: | C++ |
Status: | READY |
Result: | WRONG ANSWER |
test | verdict | time | |
---|---|---|---|
#1 | WRONG ANSWER | 0.05 s | details |
#2 | WRONG ANSWER | 0.05 s | details |
#3 | WRONG ANSWER | 0.05 s | details |
Code
#include <iostream> #include <cstdio> int main() { using namespace std; ios::sync_with_stdio(false); int x,y,s=0; cin >> x >> y; for (int n=10; n<1e9; n*=10) { int xm=x%n * 10 / n; int ym=y%n * 10 / n; s += ((xm + ym) % 10) * n/10; } cout << s; return 0; }
Test details
Test 1
Verdict: WRONG ANSWER
input |
---|
100 7 1 2 5 8 28 2 7 ... |
correct output |
---|
B R B B B B R R B B R B R B B R R B B B B R R R B B B R B R B B B B R B R R B R ... |
user output |
---|
107 |
Test 2
Verdict: WRONG ANSWER
input |
---|
10 38 36 18 28 20 37 22 38 ... |
correct output |
---|
R R B R B R R R R R B B R B R ... |
user output |
---|
48 |
Test 3
Verdict: WRONG ANSWER
input |
---|
1 100000 200000 89300 98492 33853 56822 92967 99427 ... |
correct output |
---|
R R R R B R R R B B B R B B B ... |
user output |
---|
100001 |