摘要: 题目链接:http://poj.org/problem?id=1008&lang=zh-CN&change=true题目要求把Haab转化成Tzolkin,基本思路是根据输入算出距离第一天的天数,转化成日期。自我感觉用的不错的是sstream,不足的是查找Haab_month的序号部分,本来觉得用了map的find应该会很方便,但map的插入一直报错,就没用。一开始总是wrong anwser,后来发现被13整除,被20整除,被260整除,这种要特别留意加处理。#include #include #include #include using namespace std;str 阅读全文
posted @ 2013-11-02 20:18 OT元旦 阅读(315) 评论(0) 推荐(0) 编辑