2017年7月31日

摘要: #include<iostream>using namespace std;int main(){ int a,b,c; cin>>a>>b>>c; for(int i=10;i<=100;i++) if(i%3==a&&i%5==b&&i%7==c) { cout<<i<<endl; return 阅读全文
posted @ 2017-07-31 12:55 lookhere 阅读(278) 评论(0) 推荐(0)
摘要: 求x个2011 相乘之后,最后y位的数字是多少? x<=10^6, 1<=y<=5. 数值超过long long,用取余 a*b%m=(a%m)*(b%m)%m #include<iostream>using namespace std;int main(){ int x,y,a,i=1,t=1,k 阅读全文
posted @ 2017-07-31 12:47 lookhere 阅读(254) 评论(0) 推荐(0)

导航