摘要: 【A System of Equations】 http://www.codeforces.com/contest/214/problem/A 题目大意:给定n,m,问有多少二元组(a,b)满足 ,其中a,b>0。 由于n很小,直接枚举a,b的值即可,复杂度O(n²)。#include <iostream>using namespace std;int n,m;long long ans=0;int main(){ cin>>n>>m; for(int i=0;i<=1000;i++) for(int j=0;j<=1000;j+ 阅读全文
posted @ 2012-07-31 16:29 Delostik 阅读(320) 评论(0) 推荐(0) 编辑