{"author_url":"https://blog.hatena.ne.jp/moistx/","published":"2014-08-17 14:53:56","url":"https://logfiles.hatenablog.com/entry/20140817/1408254836","height":"190","description":"class RevealTriangle { public: vector <string> calcTriangle(vector <string> Q) { int N = Q.size(); int cnt; do { cnt = 0; for(int i=0; i<N-1; i++) { for(int j=0; j<N-i-1; j++) { if(Q[i][j] == '?' && Q[i][j+1] != '?' && Q[i+1][j] != '?') { cnt ++; Q[i][j] = (char)('0' + ((Q[i+1][j]-'0') - (Q[i][j+1]-\u2026","width":"100%","version":"1.0","title":"SRM404 Div1Easy RevealTriangle","author_name":"moistx","provider_url":"https://hatena.blog","categories":["SRM"],"blog_url":"https://logfiles.hatenablog.com/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Flogfiles.hatenablog.com%2Fentry%2F20140817%2F1408254836\" title=\"SRM404 Div1Easy RevealTriangle - Logfiles\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","image_url":null,"provider_name":"Hatena Blog","blog_title":"Logfiles","type":"rich"}