现在位置: 首页 > bopper发表的所有文章
  • 09月
  • 02日
综合 ⁄ 共 769字 评论关闭
题目 三角形 ABC 中,A : B : C = 4 : 2 : 1,a,b,c 都是整数,并且最大公约数是 1。求证:a+b,a-c,b-c 都是平方数。 题图 解答 在图中,作 BAC 的平分线 AG ,那么明显有,AG = BG。又,BAG = B,所以,AGC = BAC。那么这暗示了 △ABC∼△GAC\triangle ABC \sim \triangle GAC。 我们根据边的相似比得到,x/c = (a-x)/b = b/a。这个式子消去 x,发现是:aa = bb+bc —(1)。 再作 B 的平分线可以得到对称的结论: bb = cc+ac —(2)。 (1) + (2),可以得到 a(a+c) = c(b+c) —(3);(3)/(1),可以得到 ab = (a+b)c —(4) 。 这里得......
阅读全文
  • 08月
  • 19日
综合 ⁄ 共 713字 评论关闭
题目链接:hdu 5155 Harry And Magic Box dp[i][j]表示i∗j的矩阵方案数,dp[i][j]从dp[i−k][j−1]中转移,枚举前面j-1列中k行为空,那么这些行在第j列一定有宝石。 #include <cstdio> #include <cstring> #include <algorithm> using namespace std; typedef long long ll; const ll mod = 1000000007; const int maxn = 55; ll c[maxn][maxn], t[maxn], dp[maxn][maxn]; void init () { for (int i = 0; i <= 50; i++) { c[i][0] = c[i][i] = 1; for (int j = 1; j < i; j++) c[i][j] = (c[......
阅读全文
  • 08月
  • 06日
综合 ⁄ 共 966字 评论关闭
#include<stdio.h>#include<stdlib.h>#include <malloc.h>int main(void){    FILE * pfstream;    int row = 0;    int col = 0;    int i = 0;    int j = 0;    int item;    int *narray = NULL;    if( (pfstream = fopen( "input.txt", "r" )) == NULL ){        printf( "The file 'input.txt' can not be opened/n" );        exit(-1);    }    else{         fscanf(pfstream,"%d",&row);        fscanf(pfstream,"%d",&col);         if (row > 0 && col > 0)        {       ......
阅读全文
  • 06月
  • 09日
综合 ⁄ 共 1812字 评论关闭
Jsp页面中数据和方法声明 细节一: 声明语法:<%! 声明表达式;  %> <%! int a; %>  定义整型变量 <%! float b,c=3.1f  ; %> 注意:功能语句不能出现在声明区域中 细节二: 区分声明区域中的变和脚本区域中的变量 <%! int c=0; %>  ç在声明区域中声明变量,整个jsp页面有效,每次刷新jsp页面并不销毁 <% int d=10; %> ç 在脚本区域中声明变量,刷新jsp页面会销毁重建 细节三: page中指令的属性: page指令中,除了import属性,其他属性在page指令中只能出现一次。 细节四: 下......
阅读全文
  • 03月
  • 17日
综合 ⁄ 共 220字 评论关闭
 老是抱怨csdn太慢,老是抱怨百度空间不支持非ie核心浏览器,老是抱怨这抱怨那,结果是最终没有一个自己的家,想想一年前张子渝老是的话,确实啊,白天学了什么,一定要总结,一定要记,否则效率太低,很容易重蹈覆辙。其实这也是很久以来的切身感受了,大一时候的php,大二时候的asp.net,除了一些基本概念,细节可是真的忘了差不多了。   极其不利于长期的奋斗学习。   所以今天,angain!再次决定在这安家,好好记录自己的经历,以供日后唏嘘!
阅读全文
  • 05月
  • 16日
综合 ⁄ 共 129字 评论关闭
项目就分两个部分,前台和后台。 后台相对比较固定,项目中除了后台的数据查询外。 最为项目的一个点就是,前台和后台结合处的数据通信问题。 关于数据通信,只需要明白一句话,A如果发数据,什么时间发,发什么样的数据,B是如何收数据,什么时间接收数据,接收什么类型的数据。
阅读全文
  • 04月
  • 13日
综合 ⁄ 共 2749字 评论关闭
一.题目 Moving Tables Time Limit: 1000MS Memory Limit: 10000K Total Submissions: 25987 Accepted: 8660 Description The famous ACM (Advanced Computer Maker) Company has rented a floor of a building whose shape is in the following figure.  The floor has 200 rooms each on the north side and south side along the corridor. Recently the Company made a plan to reform its system. The reform includes moving a lot of tables between rooms. Because the corridor is narrow and all the ......
阅读全文
  • 04月
  • 12日
综合 ⁄ 共 2018字 评论关闭
Combinations: Given two integers n and k, return all possible combinations of k numbers out of 1 ... n. For example, If n = 4 and k = 2, a solution is: [ [2,4], [3,4], [2,3], [1,2], [1,3], [1,4], ] #define vi vector<int> #define vvi vector<vi > #define pb push_back class Solution { public: vector<vector<int> > combine(int n, int k) { // Start typing your C/C++ solution below // DO NOT write int main() function ......
阅读全文
  • 04月
  • 09日
综合 ⁄ 共 2460字 评论关闭
There are N gas stations along a circular route, where the amount of gas at station i is gas[i]. You have a car with an unlimited gas tank and it costs cost[i] of gas to travel from station i to its next station (i+1). You begin the journey with an empty tank at one of the gas stations. Return the starting gas station's index if you can travel around the circuit once, otherwise return -1. Note: The solution is guaranteed to be unique. 题目解析: 方案一: 两个数组之间的值是对应的,......
阅读全文
  • 04月
  • 07日
综合 ⁄ 共 12768字 评论关闭
链接:http://www.eygle.com/digest/2008/12/rhel45oracle10g_dataguard.html RHEL4.5中安装Oracle10g DG物理备库 原文出处 0、规划 Host IP            DB_NAME    DB_UNIQUE_NAME    Net Service Name主库192.168.137.128    ORCLDB        WENDING        db_wending备库192.168.137.129    ORCLDB        PHYSTDBY        db_phystdby保护模式:默认最大性能模式 1、主库准备工作 1.1、检查数据库是否支持Data Guard(企业版才支持),是否归档模式,Enable force logging$ sqlplus '/as sysdba'SQL> select * from v$option ......
阅读全文
  • 02月
  • 06日
综合 ⁄ 共 4699字 评论关闭
        在网上有很多关于讲mdev的自动挂载基本上都是一个版本,经过测试自动挂载确实可行,但是关于自动卸载mdev似乎不能很好的支持,经过修改已经可以做到与udev的效果相似。不能在挂载的目录中进行热插拔,否则会出现问题,不过此问题在下次插入U盘时不会造成影响,可能对U盘有损坏。 本文介绍了mdev与udev两种方法来实现自动挂载,读者可根据需要任选其一即可。         首先介绍一下mdev与udev之间的关系:         mdev是busybox中的一个udev管理程序的一个精简版,他也可以实现设备节点的自动创建和设备的自动挂载,只是在......
阅读全文
  • 02月
  • 03日
综合 ⁄ 共 813字 评论关闭
2014-07-10 14:59:46.356 mrmoney[34064:60b] Cannot find executable for CFBundle 0xd28af40 </Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk/System/Library/AccessibilityBundles/GeoServices.axbundle> (not loaded) 2014-07-10 14:59:46.378 mrmoney[34064:60b] Cannot find executable for CFBundle 0xc7897a0 </Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk/S......
阅读全文