摘要: 搭建方式: node01: ipvsadm -C ifconfig eth0:2 down node01,node04安装keepalived 配置: node01 /etc/keepalived/keepalived.conf 做个bak备份,再修改 vrrp 虚拟路由冗余协议 vrrp_inst 阅读全文
posted @ 2019-08-05 13:11 SteveYu 阅读(187) 评论(0) 推荐(0) 编辑
摘要: To prepare for PAT, the judge sometimes has to generate random passwords for the users. The problem is that there are always some confusing passwords 阅读全文
posted @ 2019-08-05 04:48 SteveYu 阅读(146) 评论(0) 推荐(0) 编辑
摘要: Given a non-negative integer N, your task is to compute the sum of all the digits of N, and output every digit of the sum in English. Input Specificat 阅读全文
posted @ 2019-08-05 04:27 SteveYu 阅读(162) 评论(0) 推荐(0) 编辑
摘要: Calculate a+b and output the sum in standard format -- that is, the digits must be separated into groups of three by commas (unless there are less tha 阅读全文
posted @ 2019-08-05 04:19 SteveYu 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 本题要求实现一种数字加密方法。首先固定一个加密用正整数 A,对任一正整数 B,将其每 1 位数字与 A 的对应位置上的数字进行以下运算:对奇数位,对应位的数字相加后对 13 取余——这里用 J 代表 10、Q 代表 11、K 代表 12;对偶数位,用 B 的数字减去 A 的数字,若结果为负数,则再加 阅读全文
posted @ 2019-08-05 04:09 SteveYu 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 科学计数法是科学家用来表示很大或很小的数字的一种方便的方法,其满足正则表达式 [+-][1-9].[0-9]+E[+-][0-9]+,即数字的整数部分只有 1 位,小数部分至少有 1 位,该数字及其指数部分的正负号即使对正数也必定明确给出。 现以科学计数法的格式给出实数 A,请编写程序按普通数字表示 阅读全文
posted @ 2019-08-05 03:55 SteveYu 阅读(149) 评论(0) 推荐(0) 编辑