上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 30 下一页
摘要: Description Given an integer N(0 ≤ N ≤ 10000), your task is to calculate N! Input One N in one line, process to the end of file. Output For each N, ou 阅读全文
posted @ 2019-01-12 16:09 RomanticChopin 阅读(48) 评论(0) 推荐(0)
摘要: Problem Description In the world line 1.048596% 麻衣的鲜血逐渐将洁白而冰冷的绒毯染成鲜红...... 鲜红...... 究竟是多少次看到这样的情境呢?梓川咲太的心已经麻木了。 为了挽救在12月24四日为了梓川咲太而献身的樱岛麻衣。在牧之原翔子的帮助下, 阅读全文
posted @ 2019-01-12 16:09 RomanticChopin 阅读(76) 评论(0) 推荐(0)
摘要: Description 有一只经过训练的蜜蜂只能爬向右侧相邻的蜂房,不能反向爬行。请编程计算蜜蜂从蜂房a爬到蜂房b的可能路线数。 其中,蜂房的结构如下所示。 Input 输入数据的第一行是一个整数N,表示测试实例的个数,然后是N 行数据,每行包含两个整数a和b(0<a<b<50)。 Output 对 阅读全文
posted @ 2019-01-12 16:08 RomanticChopin 阅读(70) 评论(0) 推荐(0)
摘要: 一、值传递 #include <iostream> #include <string> using namespace std; struct Student { int id; string name; float score[2]; }; void OutCome(Student s) { co 阅读全文
posted @ 2019-01-12 16:08 RomanticChopin 阅读(2837) 评论(0) 推荐(0)
摘要: You're given an array aa of length nn. You can perform the following operations on it: choose an index ii (1≤i≤n)(1≤i≤n), an integer xx (0≤x≤106)(0≤x≤ 阅读全文
posted @ 2019-01-12 16:08 RomanticChopin 阅读(149) 评论(0) 推荐(0)
摘要: 题目描述 算法训练 9-7链表数据求和操作 时间限制:1.0s 内存限制:512.0MB 读入10个复数,建立对应链表,然后求所有复数的和。 样例输入 1 2 1 3 4 5 2 3 3 1 2 1 4 2 2 2 3 3 1 1 样例输出 23+23i #include<iostream> #in 阅读全文
posted @ 2019-01-12 16:08 RomanticChopin 阅读(175) 评论(0) 推荐(0)
摘要: Welcome to HDU to take part in the first CCPC girls' competition! As a pretty special competition, many volunteers are preparing for it with high enth 阅读全文
posted @ 2019-01-12 16:08 RomanticChopin 阅读(96) 评论(0) 推荐(0)
摘要: 题目描述 在带权有向图G中,求G中的任意一对顶点间的最短路径问题,也是十分常见的一种问题。 解决这个问题的一个方法是执行n次迪杰斯特拉算法,这样就可以求出每一对顶点间的最短路径,执行的时间复杂度为O(n3)。 而另一种算法是由弗洛伊德提出的,时间复杂度同样是O(n3),但算法的形式简单很多。 可以将 阅读全文
posted @ 2019-01-12 16:08 RomanticChopin 阅读(276) 评论(0) 推荐(0)
摘要: Description lin2144是一只小菜鸟,都是笨鸟先飞,lin2144想来个菜鸟先飞,他从0点出发 一开始的飞行速度为1m/s,每过一个单位时间lin2144的飞行速度比上一个单位时间的飞行速度快2m/s,问n (0 < n < 10^5)个单位时间之后lin2144飞了多远? Input 阅读全文
posted @ 2019-01-12 16:07 RomanticChopin 阅读(121) 评论(0) 推荐(0)
摘要: Problem Statement A country decides to build a palace. In this country, the average temperature of a point at an elevation of x meters is T−x×0.006 de 阅读全文
posted @ 2019-01-12 16:07 RomanticChopin 阅读(102) 评论(0) 推荐(0)
上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 30 下一页
-->
Live2D