HDU
qq_52051345
博客转移至www.acming.net和51codefly.com
展开
-
HDU 1102
There are N villages, which are numbered from 1 to N, and you should build some roads such that every two villages can connect to each other. We say two village A and B are connected, if and only if t...原创 2019-05-30 12:35:54 · 94 阅读 · 0 评论 -
HDU2988
http://acm.hdu.edu.cn/showproblem.php?pid=2988#include<iostream>#include<algorithm>/*7 110 1 70 3 51 2 81 3 91 4 72 4 53 4 153 5 64 5 84 6 95 6 110 0*/using namespace std...原创 2019-05-30 12:34:11 · 99 阅读 · 0 评论 -
HDU1562
http://acm.hdu.edu.cn/showproblem.php?pid=1562#include <iostream>#include <cmath>using namespace std;typedef long long ll;bool check(ll x){ for (ll i = 2; i * i <= x; i++) { i...原创 2019-03-27 17:49:24 · 141 阅读 · 0 评论 -
HDU5311
http://acm.hdu.edu.cn/showproblem.php?pid=5311#include <iostream>#include <string>using namespace std;int flag;string s = "anniversary";void dfs(string a, int pos_a, int pos_s, int d...原创 2019-03-27 17:31:57 · 72 阅读 · 0 评论 -
HDU5944
http://acm.hdu.edu.cn/showproblem.php?pid=5944#include <iostream>#include <string>using namespace std;int main(){ int t; cin >> t; while (t--) { string s; cin >> s...原创 2019-03-25 22:38:49 · 99 阅读 · 0 评论 -
HDU5778
http://acm.hdu.edu.cn/showproblem.php?pid=5778#include <iostream>#include <cmath>using namespace std;typedef long long ll;bool check(ll x){ for (ll i = 2; i * i <= x; i++) { i...原创 2019-03-25 22:37:28 · 111 阅读 · 0 评论 -
HDU1557
http://acm.hdu.edu.cn/showproblem.php?pid=1557#include <iostream>#include <cstring>using namespace std;int a[25];int ans[25];int main(){ int t; cin >> t; while (t--) { i...原创 2019-03-25 22:35:40 · 119 阅读 · 0 评论 -
HDU6288
缺失数据范围http://acm.hdu.edu.cn/status.php?first=&pid=4004&user=&lang=0&status=0#include <iostream>#include <cmath> #define ull unsigned long long intusing namespace std;...原创 2019-03-18 13:43:38 · 114 阅读 · 0 评论 -
HDU1017
http://acm.hdu.edu.cn/showproblem.php?pid=1017#include <iostream>using namespace std;int main(){ int N; cin >> N; while(N--) { int i = 0; int n, m; ...原创 2019-03-25 10:26:28 · 193 阅读 · 0 评论 -
HDU4004
http://acm.hdu.edu.cn/showproblem.php?pid=4004/*输入:6 1 2225 3 311 218输出:411*/#include <iostream>#include <algorithm> using namespace std;int L, N, M;int d[500005];//存储每块...原创 2019-03-18 12:09:54 · 206 阅读 · 0 评论 -
HDU2199
Problem DescriptionNow,given the equation 8x^4 + 7x^3 + 2x^2 + 3x + 6 == Y,can you find its solution between 0 and 100;Now please try your lucky.InputThe first line of the input contains an intege...原创 2019-03-16 00:00:40 · 134 阅读 · 0 评论