Search found 1 match

by rasha7695
Mon Oct 06, 2014 4:47 am
Forum: Volume 117 (11700-11799)
Topic: 11716 - Digital Fortress
Replies: 39
Views: 11211

Re: 11716 - Digital Fortress

why WA?? :( #include<iostream> #include<string> #include<cmath> using namespace std; int main(){ int t; cin>>t; string s; for(int p=0;p<=t;p++){ getline(cin,s); double b=sqrt(s.length()); int c=floor(b); char a[c][c]; if(b-floor(b)!=0) cout<<"INVALID"<<endl; else { int k=0; for(int i=0;i<b;i++){ for...

Go to advanced search