---
title: "#174div2A.Cows and Primitive Roots"
author: "co-ict"
date: "2013-04-01T19:55:34Z"
tags: ["算法"]
categories: ["非技术"]
slug: "174div2a-cows-and-primitive-roots"
draft: false
lastmod: "2013-04-01T19:55:34Z"
id: 1839770
url: "https://co-ict.iteye.com/blog/1839770"
---

A.Cows and Primitive Roots 题意，给定一个素数p(2

2000),要求1&lt;=x #include #include #include #include #include #include #define MAXN 100005 #define debug\_cout(x,y) cout&lt;&gt;p; int x,i,flag,ans=0; for(x=1;x