#21871: UVA00147


jayw711kb@gmail.com (Jay Huang)

學校 : 國立虎尾科技大學
編號 : 119439
來源 : [27.247.130.217]
最後登入時間 :
2020-09-15 15:55:19
d397. 00147 - Dollars -- UVa147 | From: [27.242.137.172] | 發表日期 : 2020-07-28 15:58

 

TIPS:

1.First, I build a table to calculate all situations because if I didn't do that it will take a lots of time and I maybe not pass the CPE for "TIMELIMIT ERROR".

 

BE AWARE OF:

1.the format of output.

2.the accuracy of double.

the more safety way is:use tow integer to input. 

here is the following code:

int a,int b;char p;

while(cin>>a>>p>>b)

{

 

}

 
#21884: Re:UVA00147


753951852456 (精神小伙不請自來)

學校 : 臺北市私立延平高級中學
編號 : 103367
來源 : [203.72.178.3]
最後登入時間 :
2022-04-13 12:40:32
d397. 00147 - Dollars -- UVa147 | From: [203.72.178.1] | 發表日期 : 2020-07-29 13:05

 

TIPS:

1.First, I build a table to calculate all situations because if I didn't do that it will take a lots of time and I maybe not pass the CPE for "TIMELIMIT ERROR".

 

BE AWARE OF:

1.the format of output.

2.the accuracy of double.

the more safety way is:use tow integer to input. 

here is the following code:

int a,int b;char p;

while(cin>>a>>p>>b)

{

 

}

簡單

 
ZeroJudge Forum