2018年7月16日

摘要: 孪生素数 Time Limit: 2 Sec Memory Limit: 128 MBDescription ... 阅读全文
posted @ 2018-07-16 20:05 ~~晨阳 阅读(770) 评论(0) 推荐(0) 编辑
 
摘要: 寄居蟹与海葵 Description 寄居蟹与海葵是一对合作互助的共栖伙伴。海葵是寄居蟹最称职的门卫。它用有毒的触角去蜇那些敢来靠近它们的所有动物,保护寄居蟹。而寄居蟹则背着行动困难的海... 阅读全文
posted @ 2018-07-16 16:51 ~~晨阳 阅读(426) 评论(0) 推荐(0) 编辑
 
摘要: 母牛的故事Time Limit: 1 Sec Memory Limit: 64 MB Description有一头母牛,它每年年初生一头小母牛。每头小母牛从第四个年头开始,每年年初也生一头小母牛。请编程实现在第n年的时候,共有多少头母牛?Input输入数据由多个测试... 阅读全文
posted @ 2018-07-16 16:46 ~~晨阳 阅读(202) 评论(0) 推荐(0) 编辑
 
摘要: Description现有一式子 a / b. 你需要找出数字 c 在小数点后第一次出现的位置Input输入包含三个整数 a, b, c (1 ≤ a #include #include using namespace std;int main(){ int a... 阅读全文
posted @ 2018-07-16 16:33 ~~晨阳 阅读(191) 评论(0) 推荐(0) 编辑
 
摘要: Description给你两个数x, y, 比较 x^y 和 y ^ x 的大小Input两个数 x, y, ( 1 y ^ x , 输出 “>”如果 x ^ y = y ^ x , 输出 “=” 思路:数据太大,不可能直接算出来结果进行比较,需要转换一下思路:例如... 阅读全文
posted @ 2018-07-16 16:28 ~~晨阳 阅读(509) 评论(0) 推荐(0) 编辑
 
摘要: //#include "stdafx.h"#include#include#include#include#include #include using namespace std;int cpu_bao=0,player_bao=0;struct sCard{ in... 阅读全文
posted @ 2018-07-16 08:28 ~~晨阳 阅读(226) 评论(0) 推荐(0) 编辑