Official
A - Feet Editorial
by
A - Feet Editorial
by
sheyasutaka
初心者の方へ
- プログラミングの学習を始めたばかりで何から手をつけるべきかわからない方は、まずは practice contest の問題A「Welcome to AtCoder」をお試しください。言語ごとに解答例が掲載されています。
- また、プログラミングコンテストの問題に慣れていない方は、 AtCoder Beginners Selection の問題をいくつか試すことをおすすめします。
- C++入門 AtCoder Programming Guide for beginners (APG4b) は、競技プログラミングのための C++ 入門用コンテンツです。
- Python入門 AtCoder Programming Guide for beginners (APG4bPython) は、競技プログラミングのための Python 入門用コンテンツです。
実装方針
\(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:
