Search found 1 match

by ashikulhaque
Tue Mar 31, 2015 12:54 am
Forum: Volume 117 (11700-11799)
Topic: 11716 - Digital Fortress
Replies: 39
Views: 11209

Re: 11716 - Digital Fortress

#include<stdio.h> #include<string.h> #include<math.h> int main() { char str[1000000]; int i,t,l,j,c,k,sq; float s; scanf("%d",&t); scanf("\r"); for(i=1;i<=t;i++){ if(i!=1) printf("\n"); gets(str); l=strlen(str); s=sqrt(l); sq=sqrt(l); if(s!=sq) printf("INVALID"); else{ char ans[l]; c=0; k=0; while(...

Go to advanced search