1
0
Fork 0

04: C: Slightly faster

This commit is contained in:
Mia Herkt 2022-12-05 18:48:24 +01:00
parent da4d5ef41d
commit 59a0567939
Signed by: mia
GPG Key ID: 72E154B8622EC191
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@
int main(void) {
int a, b, c, d, S = 0, G = 0;
while (scanf("%d-%d,%d-%d", &a, &b, &c, &d) == 4) {
while (scanf("%u-%u,%u-%u", &a, &b, &c, &d) == 4) {
S += (a >= c && b <= d) || (c >= a && d <= b);
G += (a <= c && b >= c) || (c <= a && d >= a);
}