#include #include #include #include #include #include #include void profit(int b, int s, int c) { int pro = c - b - s; pro = (-1)* pro; printf("%d\n",pro); } int main() { int t; scanf("%i", &t); for(int a0 = 0; a0 < t; a0++){ int b; int s; int c; scanf("%i %i %i", &b, &s, &c); profit(b, s, c); } return 0; }