静かで孤独な日記

のんびりたまに

2018-10-28から1日間の記事一覧

AOJ1625 折り紙(Origami, or the art of folding paper)

#include<bits/stdc++.h> using namespace std; int main() { int hh, w, t, p; while (cin >> w >> hh >> t >> p, w) { int res[40][40]; for (int i = 0; i < 40; i++) for (int j = 0; j < 40; j++) res[i][j] = 0; for (int i = 0; i < hh; i++) for (int j = 0; j < w;</bits/stdc++.h>…