http://59.77.139.92/problem.php?id=1077
Water problem, careful PE
<1736.cpp>-11/12/16 17:17:52//This file was made by yjinpeng,created by Xuyike ' s black technology automatically .//Copyright (C) Changjun high School, inc.//I don't know what the. #include <iostream> #include &L t;vector> #include <algorithm> #include <cstring> #include <cstdio> #include <cstdlib># Include <cmath>using namespace Std;inline int gi () {register int w=0,q=0;register char Ch=getchar (); while ((ch< ' 0 ' | | Ch> ' 9 ') &&ch!= '-') Ch=getchar (); if (ch== '-') Q=1,ch=getchar (); while (ch>= ' 0 ' &&ch<= ' 9 ') w=w* 10+ch-' 0 ', Ch=getchar (); return q?-w:w;} int _x[3]={5,1,10},_y[3]={3,2,1};char S[5][12];int Main () {freopen ("1736.in", "R", stdin) freopen ("1736.out", "W", STDOUT); int T=gi (); memset (S, ', sizeof (s)); for (int i=5;i<=8;i++) s[0][i]= ' X '; for (int i=1;i<=4;i++) for (int. o=0;o<3;o++) for (int j=_x[o];j<=_x[o]+_y[o];j++) s I [j]= ' 0 '; for (int i=1;i<=4;i++) s[i][4]=S[i][9]= ' | '; while (t--) {int N=gi (), x= (n-1)/9,y; n-=9*x;x++; for (int o=0;o<3;o++) if (_y[o]+1>=n) {y=_x[o]+n-1;break;} else n-=_y[o]+1; s[x][y]= ' # '; for (int j=1;j<=8;j++) Putchar (S[0][j]); Putchar (' \ n '); for (int i=1;i<=4;putchar (' \ n '), i++) for (int j=1;j<=11;j++) Putchar (S[i][j]); s[x][y]= ' 0 '; }return 0;}
T^t 1736 "Fjutoj 1077" row seat