A Shortcut to What?

Question

Solution

Idea

This quesion is rather easy, just follow the flow output = (input - 5) * 3 - 10.

Code

https://github.com/mendax1234/Coding-Problems/blob/main/kattis/shortcuttowhat/shortcuttowhat.c
#include <stdio.h>

int main()
{
  long input;
  long output;

  scanf("%ld", &input);
  output = (input + 5) * 3 - 10;
  
  printf("%ld\n", output);
}

Last updated