神犇的悲惨一生
Time Limit : 3000/1000ms (Java/Other) Memory Limit : 65535/32768K (Java/Other)
Total Submission(s) : 433 Accepted Submission(s) : 243
Font: Times New Roman | Verdana | Georgia
Font Size: ← →
Problem Description
传说中有位神犇,居住在公元250年前的压力山大,由于神犇一贯低调,所以人们连他活了多少岁都不知道,好在XXXX文献上有段关于他生平细节的文字。。
XX神犇的一生,幼年占了1/6,又过了1/12的青春期,又谈了1/6的恋爱后结婚,m年后生了个孩子,名叫神牛,神牛比神犇先死n年,神牛的寿命是神犇的一半
现在人们邀请作为下一任神犇的你,算出这位神犇活了多少岁。。(神犇的命都是好长的)
注意
请采用下面这种格式输入
#include<cstdio>
using namespace std;
int main()
{
int n , m;
while(scanf("%d%d",&n,&m) != EOF)
{
}
return 0;
}
XX神犇的一生,幼年占了1/6,又过了1/12的青春期,又谈了1/6的恋爱后结婚,m年后生了个孩子,名叫神牛,神牛比神犇先死n年,神牛的寿命是神犇的一半
现在人们邀请作为下一任神犇的你,算出这位神犇活了多少岁。。(神犇的命都是好长的)
注意
请采用下面这种格式输入
#include<cstdio>
using namespace std;
int main()
{
int n , m;
while(scanf("%d%d",&n,&m) != EOF)
{
}
return 0;
}
Input
多组数据每组数据输入m,n,意思为题目所描述的。(0 < n , m <= 100)
Output
输一行出解(神犇的年龄)
Sample Input
50 70
Sample Output
1440