Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|

Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |

Language: Cake Share
Description Updog prepared to enjoy his delicious supper. At the very time he was ready to eat, a serious accident occurred—GtDzx appeared!! GtDzx declared his hadn't eaten anything for 3 days (obviously he was lying) and required Updog to share the cake with him. Further more, he threatened Updog that if Updog refused him, he would delete Updog's account in POJ! Thus Updog had no choice. Updog intended to cut the cake into After sorted all available cases according to the amount of cake for GtDzx, in the first case no cake to gave to GtDzx ( Input The first line of the input file contains two integers k-th case ._{i}Output Answer each query in a separated line, according to the order in the input. Sample Input 5 4 1 7 11 12 Sample Output 0/1 3/5 1/1 No Solution Source POJ Monthly--2007.09.09, Updog |

[Submit] [Go Back] [Status] [Discuss]

All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di

Any problem, Please Contact Administrator