2014-04-28
23:28题目:给定一个数字,用英语把它读出来。解法:ZOJ上有相反的题目。如果我要用中文读书来呢?代码: 1 // 17.7 Read an integer
in English. 2 #include 3 #include 4 using namespace s...
分类:
其他好文 时间:
2014-04-29 15:29:44
阅读次数:
423
//// ViewController.m// mapdemo001//// Created by
apple on 14-4-28.// Copyright (c) 2014年 apple. All rights reserved.//#import
"ViewController.h"#...
分类:
移动开发 时间:
2014-04-29 15:05:05
阅读次数:
596
2014-04-29
00:56题目:不用算数运算,完成加法。解法:那就位运算吧,用加法器的做法就可以了。代码: 1 // 18.1 add two numbers wihout
using arithmetic operator. 2 #include 3 using namespace std....
分类:
其他好文 时间:
2014-04-29 14:58:53
阅读次数:
383
2014-04-29
01:05题目:数数从0到n总共有多少个数字‘2’?解法:数位动态规划,可以O(log10(n))时间内解决。代码: 1 // 18.4 Count the
number of 2s from 0 to n. 2 #include 3 using namespace std;....
分类:
其他好文 时间:
2014-04-29 14:44:34
阅读次数:
380
jsonutil类 1 package *********** 2 3 import
java.lang.reflect.Field; 4 import java.lang.reflect.Type; 5 import
java.util.ArrayList; 6 import jav...
分类:
Web程序 时间:
2014-04-29 13:41:02
阅读次数:
749
1 package com.szy.status; 2 3 import
android.app.IntentService; 4 import android.app.Notification; 5 import
android.app.NotificationManager; 6 impor.....
分类:
其他好文 时间:
2014-04-29 13:32:48
阅读次数:
549
package com.szy.shared.activity;import
android.app.Activity;import android.content.Context;import
android.content.SharedPreferences;import android.con...
分类:
其他好文 时间:
2014-04-29 10:34:47
阅读次数:
407
利用挖坑填数+分治实现的快排代码如下:import
java.io.BufferedReader;import java.io.IOException;import
java.io.InputStreamReader;import java.util.Formatter;import java.ut...
分类:
其他好文 时间:
2014-04-29 10:33:46
阅读次数:
404
由于n比较小,直接暴力解决#include #include #include #include
#include #includeusing namespace std;int main(){ int n,k; cin >> n
>> k; vector a(n); for...
分类:
其他好文 时间:
2014-04-29 09:18:46
阅读次数:
412
这道题比较简单,就是用数组存取其路径。如101和102是对门,其过道号可以记为51.
1和2之间的为1. 今早突然收到操作系统停课的通知,哈哈 回来就做一下水题,开心 1 #include 2 #include 3 int main() 4 {
5 //freopen("input.txt"...
分类:
其他好文 时间:
2014-04-29 09:15:47
阅读次数:
370