#include using namespace std; #define REP(i,N) for(i=0;i P; typedef struct{ int first; int second; int third; }T; //昇順 bool comp_Se(T& l, T& r){ return l.second < r.second; } vector eratosthenes(int n){ int i,j; vector v(1,2); for(i=3;i> N; vector v = eratosthenes(N); int i,j; //falseで負け,trueで勝ち vector game(2,true); game.push_back(false); game.push_back(false); for(i=4;i<=N;i++){ bool g = false; for(j=0;j