摘要:
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2000题目大意:按各字符的ASCII码从小到大的顺序进行排序 注意格式哦!输出时字符中间用一个空格分开 1 #include 2 int main() 3 { 4 char a,b,c,t; 5 ... 阅读全文
摘要:
题目链接:http://poj.org/problem?id=3751题目大意:按照要求的格式将输入的时间日期进行转化。 1 #include 2 #include 3 using namespace std; 4 int main () 5 { 6 int t; 7 cin>>... 阅读全文
摘要:
题目链接:http://poj.org/problem?id=1298题目大意:按照所给的顺序要求将输入的字符串进行排列。 1 #include 2 #include 3 #include 4 using namespace std; 5 int main () 6 { 7 char ... 阅读全文
摘要:
题目链接:http://poj.org/problem?id=2000题目大意:求N天得到多少个金币,第一天得到1个,第二、三天得到2个,第四、五、六天得到3个、、、、以此类推,得到第N天的金币数。 1 #include 2 #include 3 #include 4 using namesp... 阅读全文
摘要:
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1253题目大意:在所给的时间能顺利离开城堡。 1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 int ma... 阅读全文
摘要:
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1016题目大意:输入一个n,环从一开始到n,相邻两个数相加为素数。 1 #include 2 #include 3 #include 4 using namespace std; 5 int vis... 阅读全文