logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

PAT A1039 unordered_map

使用cin和cout会超时,为了加快速度,可以加上ios::sync_with_stdio(false);map是基于红黑树实现的,unordered_map是基于哈希实现的,对于本题来说,由于不需要对元素进行排序,显然使用unordered_map下面为代码和注解#include <iostream>#include <vector>#include <unorde

#算法
湖南大学2020届ACM新生赛 全部题解

新生赛过后,熬了4天夜,终于把模型机验收完了,还有一星期多期末考试,抽空写个题解。A Counting 0 and 1 in string0->11->101是由0,1转移过来,0是由1转移过来。因此列出状态转移的方程即可#include <iostream>using namespace std;long long f0[100], f1[100];int main(){

暂无文章信息