Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Project Eulerではじめる実装とアルゴリズム構築のトレーニング

Project Eulerではじめる実装とアルゴリズム構築のトレーニング

2018/05/23(水)にサポーターズColab.で発表したスライドです

Shu OGAWARA

May 23, 2018
Tweet

More Decks by Shu OGAWARA

Other Decks in Technology

Transcript

  1. 2018/05/23 Colab. Project Euler      Shu

    OGAWARA (@expajp)
  2. 13* n .$ -(@expajp) –  &' • 3!2! –

    Ruby/Rails01 –     ,+ – )/#"%( – 4+2
  3.    

  4. Project Euler

  5. Project Euler https://projecteuler.net/

  6. Project Euler Project Euler*.$-3 /7?9<@8:>6 =;-), "45!&1,.+3  -2 -

    *#40%.  -4/), 5!"*) 0%, !- .7?9<@8*:>6=; - )%. “ AProject Euler,'( http://odz.sakura.ne.jp/projecteuler/index.php?Project%20Euler%E3%81%AB%E3%81%A4%E3%81%84%E3%81%A6
  7. Project Euler  n -&$%(1 3& – %(, %(& n

    600%' #%!7+ – ;)* 16 49" n 2058 5% – 100% 5%: 49" – 20%  0 .6 OK 25% •   30%2  /
  8. Project Euler

  9. Project Euler  n " # +$ n '% (*"

    # ) n #  !, →  &#-
  10.  $%?18.MOQN?#,?=1;-) + > 6EA?.>"B?2>*(6 E$;-&>C7:! $=$G56.# ;@-'- <=DH;$?3%?18< 94DF

    :/E. “ R$(3?0)<@ - JKLPI https://kotobank.jp/word/%E6%8A%80%E8%83%BD-178742
  11.    

  12.   

  13.     →   

  14.   

  15.        https://www.sing.co.jp/shop/g/gdkuri-kei/

  16.   n   "  n ! 

     n    
  17.  "# n   &  n % 

     n $  ! → Project Euler 
  18.  "!)$ n 70+; "!)$ – 5A# $*-  &(%'

    – [email protected]4 >2 FD/15 <C 5A n *- 3:.8  30 – ?,E= 95A  – /15A # $[email protected] 
  19.     https://projecteuler.net/

  20. Demo:   Problem 1 35  10  ,

    3 #! 5 '# ! 3, 5, 6, 9 4&, (%  ! 23 '. $, 1000  3  5 '   ) "$. “ *Problem 1 - PukiWiki http://odz.sakura.ne.jp/projecteuler/index.php?cmd=read&page=Problem%201
  21.  ProgressStatistics 

  22. 

  23. 

  24.     B9 n 24/, +!(9  

     @A – , +!(;724etc. 5< n >31:9       – 68)"#%*'*+  n = ?. &-$0  
  25. Write Code Everyday

  26. Write Code Everyday n John Resig [email protected] 4+ – )*t-wada

    1;  n =)"6 Github!%  – %($'& >. – <98?  2 – :"5  – "673/,#"'-
  27.   n Project Euler51 – ->34:98, –  ;->(".=

    n 1*1$!" 20? – <*1/5OK – (' %&)" 6+  #(7 OK – 1
  28. 

  29.   " n  !%  n ) #

    $* n ' &(
  30. 1  

  31. 

  32.  Github n      n clone

     n  
  33. Hands-on:   Problem 4     %%)#&

    ( . 2 '& ,  # ! 9009 = 91  99 &. !, 3 '& ( "$. “ * Problem 4 – PukiWiki http://odz.sakura.ne.jp/projecteuler/index.php?cmd=read&page=Problem%204
  34.  http://odz.sakura.ne.jp/projecteuler/

  35.  Project Euler n  #/ n %$ *( 

    n %), &-  n 0! " '+ .1 n