fork download
  1. #include <bits/stdc++.h>
  2.  
  3. int main() {
  4. int a, b, c;
  5. scanf("%d %d %d", &a, &b, &c);
  6. printf("%d\n", 21 - (a + b + c));
  7. return 0;
  8. }
  9.  
Success #stdin #stdout 0s 5284KB
stdin
3
1
3
stdout
14