查看完整版本: 各位幫幫我啊
頁: [1]

ysermax2 發表於 2016-10-1 12:55 AM

各位幫幫我啊

Write a C program for Exercise 2-6 with difficult test cases, where  1<=n<=1019 and 1<=x<=109.
Sample Input
2
12312312323 89892
123984393933 9893485
Sample Output
63762
5662196



以上是別班程式設計的題目
但是我想要知道解法
拜託各位了!!!我試過轉二進位法種種  可是實在是不了解





補充內容 (2016-10-1 02:39 PM):
exercise 2-6就是這題...<div class='locked'><em>瀏覽完整內容,請先 <a href='member.php?mod=register'>註冊</a> 或 <a href='javascript:;' onclick="lsSubmit()">登入會員</a></em></div><div></div>

snowflying 發表於 2016-10-4 11:30 PM

本帖最後由 snowflying 於 2016-10-4 11:33 PM 編輯

題目到底是要做什麼

Write a C program for Exercise 2-6 with difficult test cases,
這段只有提到測試資料比較難,是與某一題做比較,但是那一題的題目是什麼?

where  1<=n<=1019 and 1<=x<=109.
這段只是測試資料的範圍


這就好像在問別人說,第一題怎麼寫,然後列出選項,卻不給題目一樣
除非是上同一門課的人,不然是看不懂在說什麼的


...<div class='locked'><em>瀏覽完整內容,請先 <a href='member.php?mod=register'>註冊</a> 或 <a href='javascript:;' onclick="lsSubmit()">登入會員</a></em></div>

nypor 發表於 2016-10-23 11:19 PM

Please provide "Exercise 2-6" to understand the whole request.
頁: [1]