Official

A - Feet Editorial by sheyasutaka


初心者の方へ

実装方針

\(A, B\) の値を入力から受け取り、\(12A + B\) の値を出力すればよいです。

実装例 (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;
}

実装例 (Python)

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

posted:
last update: