#include <iostream> using namespace std; int main() { int n = 0, m; while(cin >> n){ m = n + 1; n % 2 == 0? n /= 2: m /= 2; cout << m * n << endl << e ...
分类:
其他好文 时间:
2020-06-05 13:20:48
阅读次数:
53
#include <iostream> #include <string> using namespace std; #define FOR(i,a,b) for(int i=(a);i<(b);++i) #define SWAP(a,b) auto c=a;a=b;b=c; int main() ...
分类:
其他好文 时间:
2020-06-05 12:52:35
阅读次数:
40
#include <iostream> #include <string> using namespace std; #define FOR(i,a,b) for(int i=(a);i<(b);++i) #define SWAP(a,b) auto c=a;a=b;b=c; int main() ...
分类:
其他好文 时间:
2020-06-05 12:50:54
阅读次数:
50
一个人的旅行 Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 19349 Accepted Submission(s): 6763 Proble ...
分类:
编程语言 时间:
2020-04-26 10:38:03
阅读次数:
90
Problem Description 作为杭电的老师,最盼望的日子就是每月的8号了,因为这一天是发工资的日子,养家糊口就靠它了,呵呵但是对于学校财务处的工作人员来说,这一天则是很忙碌的一天,财务处的小胡老师最近就在考虑一个问题:如果每个老师的工资额都知道,最少需要准备多少张人民币,才能在给每位老师 ...
分类:
其他好文 时间:
2020-03-20 22:11:07
阅读次数:
79
此博客链接:https://www.cnblogs.com/ping2yingshi/p/12491394.html RPG的错排(77min) 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2068 Problem Description 今年暑假杭 ...
分类:
其他好文 时间:
2020-03-14 13:03:01
阅读次数:
67
本题如果将int型转化为字符串,则会显示超时,所以只能用从后往前一位一位的判断是否含有4或者62 #include <iostream> #include<string> using namespace std; int main() { int m,n; int index; bool flag; ...
分类:
编程语言 时间:
2020-03-10 21:58:35
阅读次数:
69
基本思想: 快速幂取模,如果不去模,就是快速幂大数问题; 关键点: 无; #include<iostream> #include<string> using namespace std; typedef long long ll; string s; //int f[maxn]; void mult ...
分类:
其他好文 时间:
2020-03-09 13:51:23
阅读次数:
53
Problem Description 作为杭电的老师,最盼望的日子就是每月的8号了,因为这一天是发工资的日子,养家糊口就靠它了,呵呵但是对于学校财务处的工作人员来说,这一天则是很忙碌的一天,财务处的小胡老师最近就在考虑一个问题:如果每个老师的工资额都知道,最少需要准备多少张人民币,才能在给每位老师 ...
分类:
其他好文 时间:
2020-03-06 21:38:34
阅读次数:
71
此博客链接:https://www.cnblogs.com/ping2yingshi/p/12395220.html 1.算菜价(22min) 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2090 Problem Description 妈妈每天都要 ...
分类:
其他好文 时间:
2020-03-02 14:32:03
阅读次数:
127