Self powersProblem 48The series, 11 + 22 + 33 + ... + 1010 = 10405071317.Find the last ten digits of the series, 11 + 22 + 33 + ... + 10001000.Answer:9110
原创
2022-08-11 16:55:56
33阅读
Self powersProblem 48The series, 11 + 22 + 33 + ... + 1010 = 10405071317.Find the last ten digits of the series, 11 + 22 + 33 + ... + ...
转载
2017-03-19 09:00:00
31阅读
2评论
ftttttttttttttttttttttt
原创
2007-06-15 04:36:38
517阅读
Only three more months to go! So, what are you going to do after you graduate, Donna?
再有3个月就该中
原创
2013-04-19 09:52:43
435阅读
点赞
**MongoDB简介及使用示例**
**一、MongoDB简介**
MongoDB是一个开源的、基于文档的NoSQL数据库管理系统。它以灵活的、可扩展的方式存储数据,适用于大量数据的存储和高速数据访问。MongoDB采用了面向文档的数据模型,将数据以文档的形式存储在一个集合中,每个文档可以有不同的结构。MongoDB的设计目标是将开发速度和灵活性放在首位。
MongoDB的特点:
1. 灵
原创
2024-01-31 08:42:15
17阅读
题目:某个公司采用公用电话传递数据,数据是四位的整数,在传递过程中是加密的,加密规则如下:每位数字都加上5,然后用和除以10的余数代替该数字,再将第一位和第四位交换,第二位和第三位交换。
转载
2018-10-23 22:51:00
114阅读
2评论
#include <stdio.h>int main(){int i,j,n,sum=0,x[1001]={0};scanf("%d",&n);for (i=1;i<=n;i++){scanf("%d",&j);if (x[j]==0) sum++;x[j]=1;}printf("%d\n",sum);for (i=1;i<=1000;i++)if (x[i]==1) printf("%d ",i);return 0;}
转载
2012-05-09 13:01:00
98阅读
2评论
基础练习 十六进制转十进制 时间限制:1.0s 内存限制:512.0MB
问题描述 从键盘输入一个不超过8位的正的十六进制数字符串,将它转换为正的十进制数后输出。 注:十六进制数中的10~15分别用大写的英文字母A、B、C、D、E、F表示。样例输入FFFF样例输出65535 #include <iostream> #include <
转载
2018-02-15 00:35:00
99阅读
2评论
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评论
/** * 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
220阅读
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评论
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 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评论
/** * This problem was asked by Pivotal. Write an algorithm that finds the total number of set bits in all integers between 1 and N. * */ class Proble ...
转载
2021-08-07 11:26:00
142阅读
2评论
Problem-1000:A + B Problem Sample Code:
转载
2017-04-28 09:30:00
88阅读
2评论
问题 E: Problem B时间限制:1 Sec内存限制:32 MB题目描述请写一个程序,对于一个m行m列的(1<m<10)的方阵,求其每一行,每一列及主对角线元素之和,最后按照从大到小的顺序依次输出。输入共一组数据,输入的第一行为一个正整数,表示m,接下来的m行,每行m个整数表示方阵元素。输出从大到小排列的一行整数,每个整数后跟一个空格,最后换行...
原创
2022-09-15 11:00:27
67阅读