题目原文:
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it ...
分类:
其他好文 时间:
2014-08-05 00:51:58
阅读次数:
257
487-3279
Businesses like to have memorable telephone numbers. One way to make a telephone number memorableis to have it spell a memorable word or phrase. For example, yo...
分类:
其他好文 时间:
2014-08-04 21:41:34
阅读次数:
395
ASCII table and descriptionASCII stands for American Standard Code for Information Interchange. Computers can only understand numbers, so an ASCII cod...
分类:
其他好文 时间:
2014-08-04 17:31:17
阅读次数:
336
一开始想了一个用二进制状压的方法,发现空间需要的太大,光光memset都要超时 = = 其实不用每次都memset也可以用三进制,一开始直接打表出所有的状态转移就好#include #include #include #include #include #include #include #incl...
分类:
其他好文 时间:
2014-08-04 17:10:47
阅读次数:
259
方法一:使用文件标签EOF重定向的方法的:#!/bin/bash
user=root
pass=123456
db=mysql
tablename=user
mysql-s--line-numbers-f-u$user-p$pass-D$db--delimiter=";"-E<
--SELECThost,userfrom$tablenameorderby1;
SELECThost,userfrom$tablenameorderby1;
quit
EOF优点:sql..
分类:
数据库 时间:
2014-08-04 14:41:58
阅读次数:
234
/*
ID: lucien23
PROG: runround
LANG: C++
*/
#include
#include
#include
using namespace std;
int main()
{
ifstream infile("runround.in");
ofstream outfile("runround.out");
if(!infile || !outfil...
分类:
其他好文 时间:
2014-08-04 14:22:27
阅读次数:
173
题目:Given two numbers represented as strings, return multiplication of the numbers as a string.Note: The numbers can be arbitrarily large and are non-....
分类:
编程语言 时间:
2014-08-04 13:58:57
阅读次数:
285
题目:Determine whether an integer is a palindrome. Do this without extra space.click to show spoilers.Some hints:Could negative integers be palindromes....
分类:
编程语言 时间:
2014-08-04 04:09:56
阅读次数:
339
Problem FReverse PrimeInput:Standard InputOutput:Standard OutputThere are a few 7 digit positive numbers whose reverse number is a prime number and le...
分类:
其他好文 时间:
2014-08-03 23:07:36
阅读次数:
469
Given a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below.For example, given the fol...
分类:
其他好文 时间:
2014-08-03 22:59:56
阅读次数:
259