Search found 1 match

by karyotype
Fri Jan 04, 2013 11:37 pm
Forum: Volume 117 (11700-11799)
Topic: 11716 - Digital Fortress
Replies: 39
Views: 17807

Re: 11716 - Digital Fortress

WHY RTE???

#include<string.h>
#include<stdio.h>
#include<math.h>
int main()
{
char str[10000],dummy;
int i,j,l,p,t;
scanf("%d%c",&t,&dummy);
while(t--)
{

gets(str);

l = strlen(str);
int p = sqrt(l);
if(p*p==l)
{
for(i=0; i<p; i++)
{
for(j=i; str[j]!='\0'; j+=p)
printf("%c",str[j ...

Go to advanced search