Official

A - Feet Editorial by en_translator


For beginners

Idea

Receive the values of \(A\) and \(B\) as input, and print \(12A + B\).

Sample code (C++)

#include <iostream>
using std::cin;
using std::cout;

int a, b;

int main (void) {
	cin >> a >> b;
	
	int ans = a * 12 + b;

	cout << ans << "\n";
	
	return 0;
}

Sample code (Python)

a, b = map(int, input().split())
print(a * 12 + b)

posted:
last update: