摘要: 1 #include 2 using namespace std; 3 4 bool isprime(int n){ 5 if (n > n; 15 for (int i = 1; i <= n; i++){ 16 if (isprime(i)){ 17 if (i - lastprime == 2) sum++; 18 ... 阅读全文
posted @ 2018-03-07 22:49 ouyang_wsgwz 阅读(157) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 3 int main(){ 4 int n; 5 scanf("%d", &n); 6 int b = n / 100; 7 int s = n / 10 % 10; 8 int g = n % 10; 9 for (int i = 0; i < b; i++){ 10 printf(... 阅读全文
posted @ 2018-03-07 22:48 ouyang_wsgwz 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 using namespace std; 4 5 int main(){ 6 int hash[10000] = { 0 }; 7 int x, n, a[110], num = 0; 8 cin >> x; 9 for (int i = 0; i> a[i]; 11 n = ... 阅读全文
posted @ 2018-03-07 22:45 ouyang_wsgwz 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 7 struct Node 8 { 9 string name; 10 string id; 11 int score; 12 }; 13 const int maxn = 1005; 14 15 boo... 阅读全文
posted @ 2018-03-07 22:37 ouyang_wsgwz 阅读(126) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 int main() 4 { 5 char s[1001]; 6 int i, n, a, b, c; 7 char *p; 8 scanf("%d", &n); 9 for (i = 0; i0 && c == a*b){ 39 printf("Y... 阅读全文
posted @ 2018-03-07 22:31 ouyang_wsgwz 阅读(122) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 #include 4 using namespace std; 5 const int maxn = 15; 6 string a; 7 char s[maxn][maxn] = { "ling", "yi", "er", "san", "si", "wu", "liu", "qi", "ba", "jiu" }; 8 int... 阅读全文
posted @ 2018-03-07 22:21 ouyang_wsgwz 阅读(154) 评论(0) 推荐(0) 编辑