自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(4)
  • 收藏
  • 关注

原创 The 3n + 1 problem

Description Problems in Computer Science are often classified as belonging to a certain class of problems (e.g., NP, Unsolvable, Recursive). In this problem you will be analyzing a property of an a

2014-09-13 19:26:27 294

原创 Gold Coins

Description The king pays his loyal knight in gold coins. On the first day of his service, the knight receives one gold coin. On each of the next two days (the second and third days of service), th

2014-09-11 11:08:00 582

原创 http://poj.org/problem?id=3006

#include #include int Isprime(int n) {  int i,t;  if(n==1)  return -1;  if(n==2)  return 1;  else  {    t=0;    for(i=2;i    {       if(n%i==0)       {          t=1;          break;

2014-08-29 16:24:21 372

翻译 http://jxnu.acmclub.com/index.php?app=problem_title&id=468&problem_id=1017

#include int main() {   int N[1000],K[1000],T,a[100],b,i,j,x,y;   scanf("%d",&T);   for(b=0;b   {   scanf("%d %d",&N[b],&K[b]);   for(i=0;i   {     scanf("%d",&a[i]);     x=a[K[b]-1];   }

2014-08-27 11:09:41 1522

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除