07 2018 档案

摘要:传送门:https://cn.vjudge.net/problem/UVA-1588 #include <iostream> #include <string.h> using namespace std; int kick(char *s1,char *s2, int n, int m) { in 阅读全文
posted @ 2018-07-14 10:16 子诚- 阅读(138) 评论(0) 推荐(0)
摘要:传送门:https://cn.vjudge.net/problem/UVA-1587 #include <iostream> #include <stdio.h> #include <string.h> #include <algorithm> using namespace std; pair<i 阅读全文
posted @ 2018-07-14 09:56 子诚- 阅读(112) 评论(0) 推荐(0)
摘要:题目:https://cn.vjudge.net/problem/UVA-10340 #include <iostream> #include <stdio.h> #include <string.h> using namespace std; char s[1000005],t[1000005]; 阅读全文
posted @ 2018-07-14 09:45 子诚- 阅读(148) 评论(0) 推荐(0)
摘要:题目:https://vjudge.net/problem/UVA-202 https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=138 #include <io 阅读全文
posted @ 2018-07-14 09:41 子诚- 阅读(208) 评论(0) 推荐(0)
摘要:题目链接:https://vjudge.net/problem/UVA-1368 https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=4114 #include 阅读全文
posted @ 2018-07-09 21:54 子诚- 阅读(161) 评论(0) 推荐(0)
摘要:Problem Description 给你n个整数,请按从大到小的顺序输出其中前m大的数。 Input 每组测试数据有两行,第一行有两个数n,m(0<n,m<1000000),第二行包含n个各不相同,且都处于区间[-500000,500000]的整数。 Output 对每组测试数据按从大到小的顺序 阅读全文
posted @ 2018-07-09 15:37 子诚- 阅读(177) 评论(0) 推荐(0)
摘要:Problem Description A Fibonacci sequence is calculated by adding the previous two members the sequence, with the first two members being both 1. F(1) 阅读全文
posted @ 2018-07-08 16:13 子诚- 阅读(156) 评论(0) 推荐(0)
摘要:Problem Description Given an equilateral triangle with n the length of its side, program to count how many triangles in it. Input The length n (n <= 5 阅读全文
posted @ 2018-07-08 11:17 子诚- 阅读(273) 评论(0) 推荐(0)
摘要:Problem Description 读入两个小于100的正整数A和B,计算A+B. 需要注意的是:A和B的每一位数字由对应的英文单词给出. Input 测试输入包含若干测试用例,每个测试用例占一行,格式为"A + B =",相邻两字符串有一个空格间隔.当A和B同时为0时输入结束,相应的结果不要输 阅读全文
posted @ 2018-07-07 09:09 子诚- 阅读(255) 评论(0) 推荐(0)
摘要:题目链接:https://vjudge.net/problem/UVA-232(VJ) https://vjudge.net/problem/32396/origin(UVaOJ) AC代码: #include<stdio.h> #include<iostream> #include<string> 阅读全文
posted @ 2018-07-05 20:00 子诚- 阅读(267) 评论(0) 推荐(0)