ENG
RUS
Timus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board
Discussion of Problem
1409
. Two Gangsters
why is wrong?
Posted by
Crisfigueroa
5 Apr 2022 07:50
#include <stdio.h>
#include <stdlib.h>
int main(){
int harry,larry,res,res1,c;
scanf("%d %d",&harry,&larry);
c=(harry+larry)-1;
if(c<=10){
res1=10-harry;
res=10-larry;
printf("%d %d \n", res1,res);
}else
return 0;
}
© 2000–2024
Timus Online Judge Team
. All rights reserved.