Official

A - twiblr Editorial by evima


The number of follows can be increased up to twice as much as the number of followers \(+100\), that is, \(2 \times A + 100\). Currently it’s \(B\), so the number of possible extra follows is \(2 \times A + 100 - B\). Most languages have operators of basic arithemic operations, and the value can be calculated with them.

Sample Code (C)

#include <stdio.h>

int main() {
   int a, b;
   scanf("%d%d", &a, &b);
   printf("%d\n", 2 * a + 100 - b);
   return 0;
}

Sample Code (Python)

a, b = map(int, input().split())
print(2 * a + 100 - b)

posted:
last update: