Saturday, April 27, 2013 Hexagonal Board SPOJ 7191 Hexagonal Board Problem Code HEXBOARD #include<stdio.h> int main() { int n,a=3,d=4,val,i,j; scanf("%d",&n); while(n!=-1) { val=a+(n-1)*d; val=val-1; int s[val+1][val+1]; for(i=0;i<=val;i++) { for(j=0;j<=val;j++) s[i][j]=0; } s[0][val/2]=95; for(i=1;i<=val/2;i++) { for(j=0;j<=val;j++) { if(s[i-1][j]==95) { s[i][j-1]=47; s[i][j+1]=92; } if(s[i-1][j]==47){ //if(j-1>=0) //s[i-1][j-1]=95; //else s[i][j]=92; } if(s[i-1][j]==92){ //if(j+1<=val)...
Stats
Alexa Rank:
Popular in Country:
Country Alexa Rank:
language: en
Response Time: 0.514993
SSL: Enable
Status: up
Code To Txt Ratio
Word Count 3617
Links
ratio 18.634054729495
SSL Details
SSL Issuer:
Issuer: GTS CA 1C3
Valid From: 2022-06-06 08:59:22
Expiration Date: 2022-08-29 08:59:21
SSL Organization:
Signature 09ecf5a37f8210716bbf4aa859e8fcd17ca0d09f
Algorithm: RSA-SHA256
WordPress.com: Fast, Secure Managed WordPress Hosting
Create a free website or build a blog with ease on WordPress.com. Dozens of free, customizable, mobile-ready designs and themes. Free hosting and support.
Default Parallels Plesk Panel Page
New to Parallels? Parallels is a worldwide leader in virtualization and automation software that optimizes computing for consumers, businesses, and Cloud services providers across all major hardware, operating systems, and virtualization platforms. For the Cloud, Parallels automation and virtualization software enables cloud services providers to rapidly and profitably deliver the...