摘要: http://poj.org/problem?id=1328思路:1.肯定y大于d的情况下答案为-1,其他时候必定有非负整数解2.x,y同时考虑是较为麻烦的,想办法消掉y,用d^2-y^2获得圆心允许范围,问题转化为在许多圆心允许范围内取尽可能少的点,也即在许多线段上取尽可能少的点,使得所有线段上都... 阅读全文
posted @ 2015-08-07 03:11 雪溯 阅读(163) 评论(0) 推荐(0)
摘要: http://poj.org/problem?id=3094 1 #include 2 #include 3 using namespace std; 4 int main() 5 { 6 string str; 7 getline(cin,str); 8 while(st... 阅读全文
posted @ 2015-08-07 02:39 雪溯 阅读(109) 评论(0) 推荐(0)
摘要: import os,sys,django;sys.path.append("\\path\\to\\mysite")#ATTETION!,Err: "unable to configure filter 'special'django.core.exceptions.ImproperlyConfig... 阅读全文
posted @ 2015-08-07 01:00 雪溯 阅读(253) 评论(0) 推荐(0)