2012-04-07から1日間の記事一覧
問題 Rock-Paper-Scissors 方針 n が大きいので単純に数える事はしない 多くとも m*k ラウンドやれば後は周期的なので、m*k までシミュレーション /*! if g++ -g a.cpp; then ./a.out < a.test; fi */ #include <cmath> #include <iostream> #include <string> #include <vector> using namesp</vector></string></iostream></cmath>…