Simplify calculation
1 files changed, 1 insertions(+), 1 deletions(-) M src/small3.c
M src/small3.c => src/small3.c +1 -1
@@ 15,7 15,7 @@ int main() { char g[16384] = {0}; int a[1024] = {0}, l, x, y, nc = 0, sz = read(0, g, 16382); for(int i = 0; i < sz; i++) if((g[i]>45&&g[i]<58) || (g[i]>64&&g[i]<91)) a[nc++] = i; for(char* p = g; *p; p++) if((*p>45&&*p<58) || (*p>64&&*p<91)) a[nc++] = p-g; for(l = 1; l*l < nc; l++); for(int i = 2; (y=(i/2)*l)*(x=(i+1)/2) < l*l; i++);