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:
- #include <stdio.h>
-
- int main(void) {
- int t, x;
- scanf("%d", &t);
- while (t--)
- {
- scanf("%d", &x);
- if(x<67) printf("%d\n", x+1);
- else printf("%d\n", x);
- }
- return 0;
- }
No comments:
Post a Comment