在SPOJ上运行以下代码时,我收到运行时错误(NZEC).如果你们中的任何人愿意指出发生了什么,我将非常感激.
//0<=A<=B<=10^18,1<=N<=10^18 using System; class any { static void Main() { long t = long.Parse(Console.ReadLine()); ulong a,b,n; for(long k = 0; k < t; k++) { string[]s = Console.ReadLine().Split(' '); a = ulong.Parse(s[0]); b = ulong.Parse(s[1]); n = ulong.Parse(s[2]); Console.WriteLine(diviEntre2(a,n)); } } static ulong diviEntre2(ulong f,ulong c,ulong n) { ulong k,s,m; if (f == c && c % n == 0 && f != 0) k = c/n; else { s = f/n; m = c/n; k = m - s; } return k; } }