自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

HOH_mizukun的博客

每天A几个

  • 博客(10)
  • 资源 (1)
  • 收藏
  • 关注

原创 POJ_1009_Edge Detection

/*----------思路简述---------- 输入图像 输出图像 1、1、1 → 2、2、2 1、3、3 → 2、2、2 3、3、3 → 2、2、0 图像的改变位置为临近中间3的周围7个点及中间3本身; 事实上,“输出图像的重复序列的起点”只可能在“原图像的重复序列的起点”的相邻点及该点本身; 所

2016-08-30 11:49:22 472

原创 POJ_1008_Maya Calendar

#include#includeint main(){ int n, i, j, day, pTz, year, count; char mon[10]; char Haab[19][10] = { "pop", "no", "zip", "zotz", "tzec", "xul", "yoxkin", "mol", "chen", "yax", "zac", "ceh", "ma

2016-08-27 21:33:56 490

原创 POJ_1007_DNA Sorting

#include#includeint cmp(const void *a, const void *b){ return *(int *)a - *(int *)b; }int main(){ int n, m, a, c, g; char str[100][51], temp[51]; int count[100] = { 0 }; scanf("%d%d", &n, &

2016-08-27 21:17:35 452

原创 POJ_1006_Biorhythms

/*利用“中国剩余定理”求解,推导如下:1.定理条件:23、28、33两两互质;2.由(28*33)%23=4,找出(28*33*6)%23=5544%23=1, 即对整数(5544*p),可被28与33整除,除以23余p;3.类似类似求出: 28对应整数(14421*e),可被23与33整除,除以28余e, 33对应整数(1288*i),可被23与28整除,除以33余i;4

2016-08-27 20:05:00 572

原创 POJ_1005_I Think I Need a Houseboat

#include#define PI 3.1415926int main(){ int n, j; double x, y; scanf("%d", &n); for (int i = 1; i <= n; i++){ scanf("%lf%lf", &x, &y); j = (x*x + y*y)*PI / 100;//(x,y)所在半圆面积/每年侵蚀面积 j++;

2016-08-27 10:29:28 456

原创 POJ_1004_Financial Management

#includeint main(){ int i = 12; double s=0.0, n; while (i--){ scanf("%lf", &n); s += n; } printf("$%.2lf\n", s / 12); return 0;}

2016-08-27 10:19:59 510

原创 POJ_1003_Hangover

#includeusing namespace std;int main(){ int i; double l, s; while (scanf("%lf", &l) && l != 0){ for (s = 0.0, i = 2; (s += 1.0 / i) < l; i++); printf("%d card(s)\n", i - 1); } return 0

2016-08-27 10:15:18 478

原创 POJ_1002_487-3279

#include#include#include#includeusing namespace std;int main(){ int n, num, flag; char str[300], ch; map counts; map::iterator it; scanf("%d", &n); while (n--){ num = 0; scanf("%s",

2016-08-27 09:11:30 453

原创 POJ_1001_Exponentiation

//使用int记录小数点的位置,使用string记录去掉小数点和尾零后的整数,例://95.123 记作 -3 与 "95123"//1.0100 记作 -2 与 "101"//110000 记作 4 与 "11"#include#includeusing namespace std;//输入数据的处理void pre_treat(string &str, int &dot

2016-08-27 01:34:41 580

原创 POJ_1000_A+B Problem

#includeusing namespace std;int main(){ int a, b; cin >> a >> b; cout << a + b << endl; return 0;}

2016-08-25 10:27:31 245

8086汇编:输入输出和数组操作的一些函数

8086汇编:输入输出和数组操作的一些函数

2017-06-01

空空如也

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

TA关注的人

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