10174 - Couple-Bachelor-Spinster Numbers.
Posted: Tue Jul 03, 2007 6:02 am
Can anybody give me some test cases? I used long long to avoid integer overflow but I still have got 5 WAs.
Thanks in advance.
Thanks in advance.
The Online Judge board
https://onlinejudge.org/board/
The first part of your code probably also doesn't work for negative numbers.If there are two numbers n1 and n2 in the input then print how many bachelor numbers are within n1 and n2 (including n1 and n2). Note that (n1?n2 and (n2- n1)<=1000000).
AGAIN THANKS.......c) Find out how many square couple numbers are there within a certain range (including the terminal numbers).