2013年3月16日

SGU107 - 987654321 problem

摘要: 107. 987654321 problemtime limit per test: 0.5 sec.memory limit per test: 4096 KBFor given number N you must output amount of N-digit numbers, such, that last digits of their square is equal to 987654321.InputInput contains integer number N (1<=N<=106)OutputWrite answer to the output.Sample In 阅读全文

posted @ 2013-03-16 23:33 仗剑奔走天涯 阅读(167) 评论(0) 推荐(0) 编辑

SGU115 - Calendar

摘要: 115. Calendartime limit per test: 0.5 sec.memory limit per test: 4096 KBFirst year of new millenium is gone away. In commemoration of it write a program that finds the name of the day of the week for any date in 2001.InputInput is a line with two positive integer numbersNandM, whereNis a day number 阅读全文

posted @ 2013-03-16 21:46 仗剑奔走天涯 阅读(174) 评论(0) 推荐(0) 编辑

导航