ENG  RUSTimus 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 it's wrong?
Posted by Solaiman Shadin 1 May 2022 13:03
#include<stdio.h>

int main() {
   int  h, l;
   scanf("%d %d", &h, &l);
   int total = h + l;
   printf("%d %d\n", total - l - 1, total - h - 1);
   return 0;
}