Skip to content

Instantly share code, notes, and snippets.

View harrypotter0's full-sized avatar
🤠
On vacation

Akash Kandpal harrypotter0

🤠
On vacation
View GitHub Profile
RBI
grade
toppers
strategy
current
UPSC
SSC
GATE
study
arrays
@harrypotter0
harrypotter0 / index.pug
Created June 12, 2017 02:17
TechStart247
header#banner.navbar.navbar-default.navbar-fixed-top
.container
a.scrollable(href='#top')
img(src='https://photos-1.dropbox.com/t/2/AAB9Qj9EsKFwiUHuQYp6IAg-x8kWCRY3lQiHPoIX-hk6zA/12/576333012/png/32x32/1/_/1/2/images.png/EPaX8dAEGB0gAigCKAQ/59DJspgisaIENrO_o1WytxtDeGC19M_Rvc8tFcTcaMw?size=1280x960&size_mode=3', alt='Bond', title='Bond')
button.navbar-toggle.collapsed(type='button', data-toggle='collapse', data-target='#navbar', aria-expanded='false')
span.sr-only Toggle navigation
span.icon-bar
span.icon-bar
span.icon-bar
nav#navbar.collapse.navbar-collapse(role='navigation')
http://codeforces.com/blog/entry/47880
#include<iostream>
char A[101][101],i,j; int s,n;
int main(){
scanf("%d",&n);
for(i=1;i<=n;i++)
scanf("%s",A[i] + 1);
for(i=1;i<=n;i++)
for(j=1;j<=n;j++)
if(A[i][j] == '#' && A[i][j+1] == '#' && A[i+1][j] == '#' && A[i][j-1] == '#' && A[i-1][j] == '#')