#include #include #include #include // パワーアップ int main() { enum ARIHON { VER_ONE = 316, VER_TWO = 368, }; long long ver = 0; scanf("%lld", &ver); ver--; // 出力の答えが(VER_TWO - VER_ONE)分多くなるのでデクリメント printf("%lld", VER_ONE + ver * (VER_TWO - VER_ONE)); }