#include #include void calc(int n,char s){ if(n==0){ putchar('\n'); return; } int k=1; int t=1; while(t+k/2+1<=n){ t+=k/2+1; k++; } int i; for(i=0;i