科班出身和草台班子

in #cn5 years ago (edited)

(image source: Pixabay)

机机@julian2013解了道软哥给他出的题 “有个数,除以3余2,除以4余1,问这个数除以12余几?”

机机的解题在这里:有趣的数学【16】:科班出身和草台班子

其实看到这道题,心算都能算出来了。x除以3余2, x除以4余1,这不就是2+3=5,4+1=5,5%12的答案不就是5吗?

但是机机忽悠了半天,还抛出一句话 “有些人投机取巧,有些人稳扎稳打,可能短时间内取得的结果是一样的,但是,长远来看,稳扎稳打一定比投机取巧走得长远,这就是草台班子和科班出身的区别。”

很明显他在说我是草台班子出身的,因为我是在投机取巧,让计算机帮我算。代码如下:

int result=0;
        for(int i=0;i<100;i++){
            if(i%3==2 && i%4==1){
                System.out.println(i);
                result = i%12;
            }
        }
        System.out.println("This number mod 12 is equal to : "+result);

结果:
5
17
29
41
53
65
77
89
This number mod 12 is equal to : 5

请稳扎稳打的科班生给我算一下“有多少个小于100000的数,除以3余2,除以4余1,除以5余4?


Posted from my blog with SteemPress : http://ericet.vornix.blog/2019/01/22/%e7%a7%91%e7%8f%ad%e5%87%ba%e8%ba%ab%e5%92%8c%e8%8d%89%e5%8f%b0%e7%8f%ad%e5%ad%90/


Sort:  

哈哈 赞代码

Posted using Partiko iOS

吃了吗?来 @steemgg 玩游戏吧,决战到天亮假如我的留言打扰到你,请回复“取消”。

虽然我不是科班出身,但是数字规律一眼就看出来了。从第一数字是29,然后前进步长等于3个数字的最小公倍数=60,因此,100000÷60=16666(取整)

哈哈哈,最后算错了,1667

Posted using Partiko iOS

打多了个6,后面忘了+1😄

Posted using Partiko Android

看出是草台班子😂

Posted using Partiko iOS

机机厉害👍不是用计算机吧

Posted using Partiko iOS

这个还不能说,得放到有点赞的地方去撸😈

Posted using Partiko iOS





This post has been voted on by the SteemSTEM curation team and voting trail in collaboration with @curie.

If you appreciate the work we are doing then consider voting both projects for witness by selecting stem.witness and curie!

For additional information please join us on the SteemSTEM discord and to get to know the rest of the community!

Thank you for using CryptoSicko!

Well done and thank you for joining and supporting my subscription based upvoting bot that provides you with daily upvotes in exchange for your spare STEEM POWER.
Delegation links for CryptoSicko
100SP 250SP500SP

Thank you so much for participating the Partiko Delegation Plan Round 1! We really appreciate your support! As part of the delegation benefits, we just gave you a 3.00% upvote! Together, let’s change the world!

Congratulations @ericet! You received a personal award!

Happy Birthday! - You are on the Steem blockchain for 1 year!

Click here to view your Board

Support SteemitBoard's project! Vote for its witness and get one more award!

Hi @ericet!

Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation!
Your UA account score is currently 4.051 which ranks you at #3506 across all Steem accounts.
Your rank has dropped 15 places in the last three days (old rank 3491).

In our last Algorithmic Curation Round, consisting of 364 contributions, your post is ranked at #44.

Evaluation of your UA score:
  • Some people are already following you, keep going!
  • The readers appreciate your great work!
  • Great user engagement! You rock!

Feel free to join our @steem-ua Discord server

Coin Marketplace

STEEM 0.28
TRX 0.13
JST 0.033
BTC 62549.96
ETH 3022.14
USDT 1.00
SBD 3.67