Monday, April 6, 2026

Codeforces round 1090 (div4) - A. 67th integer problem solution

 Hi. I attended a Codeforces round, it was 3 years later from the last online contest I participated. I just solved 2 out of 6 or 7 :) questions. 

A, the first one is here: https://codeforces.com/contest/2218/problem/A

The div4 announcement is here: https://codeforces.com/blog/entry/152610

CF round 1090 editorial is here: https://codeforces.com/blog/entry/152680

Round 1090 itself is here: https://codeforces.com/contest/2218

 So, lets come to questionA. It just asks you to output number+1, unless it is less than the highest point.

The question itself: https://codeforces.com/contest/2218/problem/A 

And here is my solution:  

  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int t, x;
  5. scanf("%d", &t);
  6. while (t--)
  7. {
  8. scanf("%d", &x);
  9. if(x<67) printf("%d\n", x+1);
  10. else printf("%d\n", x);
  11. }
  12. return 0;
  13. }