摘要: 虽然这道题没有用什么算法,但却锻炼了思维//矢量分解 #include <iostream> #include <cstdio> #include <cmath> using namespace std; double l,w,x,y,r,a,v,s; int main() { while(cin>>l>>w>>x>>y>>r>>a>>v>>s) { if(!l&&!w&&!x&&!y&&!r& 阅读全文
posted @ 2013-01-04 18:08 LJ_COME!!!!! 阅读(208) 评论(0) 推荐(0)
摘要: 大整数取模,脑袋怎么就不开窍呢//我太愚蠢啦 #include <iostream> #include <cstring> #include <cstdio> using namespace std; char s[200]; int main() { while(gets(s)) { if(strcmp(s,"0")==0) break; int i; int len=strlen(s); int ou=0; for(i=0;i<len;i++) { ou=((ou*10)%17+(s[i]-'0')%17)%17 阅读全文
posted @ 2013-01-04 15:35 LJ_COME!!!!! 阅读(128) 评论(0) 推荐(0)