thx for helping~ but i still get WA after i changed the EOF to NULLhelloneo wrote:gets returns NULL instead of EOF at the end of input..
PS. remove your code after AC..

Code: Select all
removed*
Code: Select all
long long odd_num(long long num)
Code: Select all
deleted after AC