#include #include #include #include #include #include #include #include #include #include #include #include #include #include #pragma warning(disable:4996) typedef long long ll; #define MIN(a, b) ((a)>(b)? (b): (a)) #define MAX(a, b) ((a)<(b)? (b): (a)) #define LINF 9223300000000000000 #define INF 2140000000 const long long MOD = 1000000007; using namespace std; int main(int argc, char* argv[]) { int n,k; scanf("%d%d", &n, &k); int m=(n+k-1)/k; if(k>m) { m=0; while(m*m a(m*m); int cnt=0; int i,j; for(i=0; i