随笔分类 -  hdu

摘要:enmmmmm 题意 直接就是最短路 , 有一个需要注意的就是 两点之间的边不止一条 dijstra 算法 #include<algorithm> #include<iostream> #include<cstring> #include<cstdio> #include<cmath> #defin 阅读全文
posted @ 2018-12-06 21:07 163467 阅读(106) 评论(0) 推荐(0)
摘要:A/B Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 6867 Accepted Submission(s): 5457 Problem De 阅读全文
posted @ 2018-10-09 00:04 163467 阅读(102) 评论(0) 推荐(0)
摘要:/* 水题 但是这个PE让我真的很气 最后一项不能有空格 */ #include <stdio.h> int main(void) { int n, m; while(scanf("%d%d", &n, &m) != EOF) { int sum=0, ai=2, count=0, i; for(i 阅读全文
posted @ 2018-01-24 23:56 163467 阅读(158) 评论(0) 推荐(0)
摘要:/* hdu2629 题意 输入一个18位的身份证号码 前六位是地区 再八位是出生年月日 后四位特殊标号 前六位地区 在题目中有八个地区 ,输出 He/She is from “地区”,and his/her birthday is on 月,日,年 based on the table. if语句 阅读全文
posted @ 2018-01-24 21:21 163467 阅读(640) 评论(0) 推荐(0)