Pandigital multiplesProblem 38Take the number 192 and multiply it by each of 1, 2, and 3:192 × 1 = 192192 × 2 = 384192 × 3 = 576By con...
转载
2017-03-29 22:01:00
61阅读
2评论
Pandigital multiplesProblem 38Take the number 192 and multiply it by each of 1, 2, and 3:192 × 1 = 192192 × 2 = 384192 × 3 = 576By concatenating each product we get the 1 to 9 pand
原创
2022-08-11 16:59:27
47阅读
E. Let's Go Rolling!
time limit per test
2 seconds
memory limit per test
256 megabytes
input
standard input
output
standard output
On a number axis directed from the left rightwards, n marbles
原创
2021-09-04 18:03:50
129阅读
E. Let's Go Rolling!
time limit per test
2 seconds
memory limit per test
256 megabytes
input
standard input
output
standard output
On a number axis directed from the left rightwards, n marbles
原创
2021-09-04 18:03:52
187阅读
【比赛链接】 点击打开链接 【题解】 Problem A Word Correction【字符串】 不用多说了吧,字符串的基本操作 Problem B Run for your prize【贪心】 我们可以将这个数轴一分为二,小于等于500000的由第一个人领,否则由第二个人领 Problem C
转载
2018-02-19 18:38:00
89阅读
2评论
38.1 MERGE的定义 MERGE关键字是一个神奇的DML(Data Manipulation Language,数据操纵语言),能将INSERT、UPDATE、DELETE等操作并为一句,根据与源表联接的结果,对目标表进行插入、更新或删除等操作。 38.2 MERGE语法 MERGE INTO ...
转载
2021-07-16 14:27:00
123阅读
2评论
题目:写一个函数,求一个字符串的长度,在main函数中输入字符串,并输出其长度。
转载
2018-10-23 22:45:00
214阅读
2评论
继 承 好处: 1:提高了代码的复用性。 2:让类与类之间产生了关系,提供了另一个特征多态的前提。 ...
转载
2021-08-17 13:06:00
121阅读
2评论
今天的题总体来说还是可以的,也不是谈的算难,是一道中等题,思路是有的,遍历生成就行,看来双指针还是没学好,就是没能实现出来(很气 附上官方代码~哭了 class Solution { public String countAndSay(int n) { String str = "1"; for(i ...
转载
2021-10-16 11:33:00
78阅读
2评论
练习3801 要求:计算学生的平均成绩和不及格人数02 程序示例如下://计算学生的平均成绩和不及格人数#include"stdio.h"struct stu{ int num; char *name; char sex; float score;}boy[5] = { { 101, "Li ping", 'M', 45 }, { 102, "Zhang pin
转载
2022-10-20 14:17:42
82阅读
1、一套房子,出租1400一月,做民宿,140一晚,10天就是1400,后面20天的收益从哪里来
原创
2021-08-16 10:53:55
192阅读
Problem DescriptionGiven a sequence a[1],a[2],a[3]......a[n], yourjob is to calculate the max sum of a sub-sequence. For example,given (6,-1,5,4,-7...
转载
2016-04-19 15:17:00
96阅读
2评论
Problem DescriptionThere are Nvillages, which are numbered from 1 to N, and you should build someroads such that every two villages can connect to ...
转载
2016-06-17 09:10:00
101阅读
2评论
Problem DescriptionGiven a sequence a[1],a[2],a[3]......a[n], yourjob is to calculate the max sum of a sub-sequence. For example,given (6,-1,5,4,-7...
转载
2016-04-19 15:17:00
85阅读
2评论
1.form里面使用了struts1的html标签,那么form也应该使用html标签,即<html:form>,否则会报错 <form action="login.do" method="post"><%--这样写会报错,需要改成<html:form action="login.do" method="post">-
原创
2023-04-19 03:31:30
20阅读
/** * This problem was asked by Google. A unival tree (which stands for "universal value") is a tree where all nodes under it have the same value. Giv ...
转载
2021-08-02 12:30:00
218阅读
2评论
import java.util.* /** * This problem was asked by Microsoft. * Print the nodes in a binary tree level-wise. For example, the following should print 1 ...
转载
2021-09-12 10:36:00
222阅读
2评论
Sum Problem Sample code :
转载
2017-04-28 09:53:00
202阅读
2评论
初步创建:13:38
原创
2020-07-27 14:39:04
236阅读
/** * This problem was asked by Twitter. Implement an autocomplete system. That is, given a query string s and a set of all possible query strings, re ...
转载
2021-07-26 21:21:00
336阅读
2评论