模拟
liruiiuril
http://li-rui.org
展开
-
hdu 1033 模拟
#include#includeusing namespace std;int dx[250],dy[250];char str[250];int main(){ while(scanf("%s",str)!=EOF) { int x=300,y=420; int i; printf("%d %d moveto\n",x,y); x+=10; printf("%原创 2013-05-13 17:06:02 · 844 阅读 · 0 评论 -
hdu 4611 模拟+规律
#include#include#include#include#define LL __int64using namespace std;LL gcd(LL a,LL b){ return b==0?a:gcd(b,a%b);}LL lcm(LL a,LL b){ return a/gcd(a,b)*b;}LL solve(LL n,LL a,LL b){原创 2013-07-26 20:32:36 · 896 阅读 · 0 评论