ACM刷题
Leowner
以德报怨,何以报德?。。
展开
-
UVa10340 水题
#include <cstdio> #include <cstring> #include <cstdlib> char s1[100100]; char s2[100100]; int len1, len2; int main () { while (scanf("%s %s", s1, s2) == 2) { ...原创 2018-10-09 19:05:49 · 136 阅读 · 0 评论 -
Homework1 Tc
#include <stdio.h> #include <string.h> int T; int tnow = 0; int n; int a[20]; int b[20]; int x; int xmax, xmin; int chng(int x) { memset(a, 0, sizeof(a)); memset(b, 0, sizeof(b)); fo...原创 2018-10-10 21:39:02 · 151 阅读 · 0 评论 -
prime palindrome
The number 151 is a prime palindrome because it is both a prime number and a palindrome (it is the same number when read forward as backward). Write a program that finds all prime palindromes in the ...原创 2018-10-21 09:45:59 · 321 阅读 · 0 评论