Search found 1 match

by kashius
Tue Jan 03, 2012 1:11 am
Forum: Volume 112 (11200-11299)
Topic: 11221 - Magic square palindromes.
Replies: 58
Views: 30745

Re: 11221 - Magic square palindromes

help why WA ? :(
#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <cmath>
#define TAM 10002

char word[TAM], str[TAM], A[TAM], B[TAM], C[TAM], D[TAM];
char square[TAM][TAM];

bool palindromo(int len){
for(int i = 0, j = len-1 ; i < len && j>=0 ; ++i, j--){
if( A[i]!=A[j] || B[i ...

Go to advanced search