2012-02-25から1日間の記事一覧
問題 解法 2点を選んで1つの辺を作る. その辺が正方形をつくっているか調べるといい. #include <cstdio> #include <algorithm> using namespace std; const int MAX_HW = 5001; bool iseki[MAX_HW][MAX_HW]; int x[3000], y[3000]; int main(){ int n; while(scanf("%d", &n) &&</algorithm></cstdio>…