一样的代码为什么我会TLE???求解答 [问题点数:20分]

Bbs1
本版专家分:0
结帖率 0%
Bbs1
本版专家分:0
Bbs1
本版专家分:0
TLE及程序由TLE到COE
TLE及程序由TLE到COE;
线段树的TLE代码(pku 3468)
试题链接:rn[url=http://124.205.79.250/JudgeOnline/problem?id=3468][/url]rn问题:rn下面的<em>代码</em>是我花了一上午的时间打出来的(好吧,欢迎鄙视本菜^_^),不明白<em>为什么</em>会超时,我觉得我的add和query函数都是O(logN)的复杂度呀(估计不是,否则不会超时了……),请各位大牛看看<em>为什么</em>会超时(帮忙分析一下时间复杂度),谢谢。rn<em>代码</em>:rn[code=C/C++]rn#include rn#include rn#include rn#include rn#include rn#include rn#include rn#include rn#include rn#include rn#include rn#include rn#include rn#include rn#include rnrnusing namespace std;rn#define M 100005rnstruct Arnrn int lt, rt;rn long long sum;rntree[M * 5];rnint len;rnvoid maketree(int = 1, int = len, int = 1);rnvoid insert(int , int , int = 1);rnlong long query(int, int, int = 1);rnvoid add(int, int, long long, int = 1);rnvoid swap(int &, int &);rnvoid print();rnint main()rnrn int qs, t;rn // memset(tree, 0, sizeof tree);rn scanf("%d %d", &len, &qs);rn maketree();rn //print();rn for (int i = 1; i < qs; ++ i)rn rn scanf("%s", str);rn if (str[0] == 'Q')rn rn scanf("%d%d", &a, &b);rn if (a > b) swap(a, b);rn printf("%lld\n", query(a, b));rn rn elsern rn scanf("%d%d%lld", &a, &b, &c);rn if (a > b) swap(a, b);rn add(a, b, c);rn //print();rn rn rn //system("pause");rn return 0;rnrn// 调试用 rnvoid print()rnrn printf("----打印开始----\n");rn printf("下标\t左端点\t右端点\t和值\n");rn for (int i = 0; i < 30; ++ i)rn rn printf("%d\t%d\t%d\t%d\n", i, tree[i].lt, tree[i].rt, tree[i].sum);rn rn printf("----打印结束----\n");rnrnvoid maketree(int lt, int rt, int pos)rnrn tree[pos].sum = 0;rn tree[pos].lt = lt;rn tree[pos].rt = rt;rn if (lt == rt) return;rn int mid = (lt + rt) / 2;rn maketree(lt, mid, pos << 1);rn maketree(mid + 1, rt, (pos << 1) + 1);rnrnvoid insert(int value, int id, int pos)rnrn tree[pos].sum += value;rn if (tree[pos].lt == tree[pos].rt) return;rn int mid = (tree[pos].lt + tree[pos].rt) / 2;rn if (id << 1);rn elsern insert(value, id, (pos << 1) + 1);rnrnlong long query(int lt, int rt, int pos)rnrn if (lt == tree[pos].lt && rt == tree[pos].rt)rn return tree[pos].sum;rn int mid = (tree[pos].lt + tree[pos].rt) / 2;rn if (rt << 1);rn else if (lt > mid)rn return query(lt, rt, (pos << 1) + 1);rn elsern return query(lt, mid, pos << 1) + query(mid + 1, rt, (pos << 1) + 1);rnrnvoid add(int lt, int rt, long long value, int pos)rnrn tree[pos].sum += value * (rt - lt + 1);rn if (tree[pos].lt == tree[pos].rt)rn return;rn int mid = (tree[pos].lt + tree[pos].rt) / 2;rn if (rt << 1);rn else if (lt > mid)rn add(lt, rt, value, (pos << 1) + 1);rn elsern rn add(lt, mid, value, pos << 1);rn add(mid + 1, rt, value, (pos << 1) + 1);rn rnrnvoid swap(int & a, int & b)rnrn int t = a;rn a = b;rn b = t;rnrn[/code]
解答为什么
运行结果:rn数据库驱动成功rnException in thread "main" java.lang.NoClassDefFoundError: javax/xml/bind/DatatypeConverterrn at com.microsoft.sqlserver.jdbc.SQLServerConnection.sendLogon(SQLServerConnection.java:4098)rn at com.microsoft.sqlserver.jdbc.SQLServerConnection.logon(SQLServerConnection.java:3160)rn at com.microsoft.sqlserver.jdbc.SQLServerConnection.access$100(SQLServerConnection.java:43)rn at com.microsoft.sqlserver.jdbc.SQLServerConnection$LogonCommand.doExecute(SQLServerConnection.java:3123)rn at com.microsoft.sqlserver.jdbc.TDSCommand.execute(IOBuffer.java:7505)rn at com.microsoft.sqlserver.jdbc.SQLServerConnection.executeCommand(SQLServerConnection.java:2445)rn at com.microsoft.sqlserver.jdbc.SQLServerConnection.connectHelper(SQLServerConnection.java:1981)rn at com.microsoft.sqlserver.jdbc.SQLServerConnection.login(SQLServerConnection.java:1628)rn at com.microsoft.sqlserver.jdbc.SQLServerConnection.connectInternal(SQLServerConnection.java:1459)rn at com.microsoft.sqlserver.jdbc.SQLSern
为什么解答
select t.sqdid,t.jdrq,t.sbmc,t.sqdw,t.xmmc,t.zj,t.dabh,t.xmjbr,t.xmjbrdh,t.sfyx,t1.sgzt,t.sbxh from t_sqd t left outer join t_sqd_da t1 on t.dabh=t1.dabh and t.sglx=t1.sglx where 1=1 and exists(select t2.jfkid from com.cj.pro.domain.t.SqdJfk t2 where t2.sqd.sqdid=t.sqdid and t2.jfkh like '%524005*A61201%') and t.sglx = 1) order by t.createtime descrnrn[color=#FF0000]错误:ORA-00907: 缺失右括号[/color]
代码错误求解答
[color=#FF0000]<em>代码</em>如下[/color]rn#define n 10rn#define m 10rn#define minisize 100rnstructrnrn float address;rn float length;rn int flag;rnused_table[n];rnstructrnrn float address;rn float length;rn int flag;rnfree_table[m];rnrnallocate(J,xk)rnchar J;rnfloat xk;rnrn int i,k;rn float ad;rn k=-1;rn for(i=0;i=xk&&free_table[i].flag==1)rn if(k==-1||free_table[i].length=n)rn rn cout<<<<>a;rn switch(a)rn rn case 0:exit(0);rn case 1:rn cout<>J>>xk;rn allocate(J.xk);rn reak;rn case 2:rn cout<>J;rn relaim(J);rn break;rn case 3:rn cout<<x.cpp(19) : fatal error C1004: unexpected end of file foundrn执行 cl.exe 时出错.rnrncx.obj - 1 error(s), 0 warning(s)
高分求代码解答
import java.awt.*;rnimport java.awt.event.*;rnimport java.util.*;rnimport javax.swing.*;rnimport javax.swing.Timer;rnpublic class TimerTestrnrn public static void main(String[] args)rn rn ActionListener listener=new TimePrinter();rn Timer t=new Timer(10000,listener);rn t.start();rn JOptionPane.showMessageDialog(null,"Quit Programme?");rn System.exit(0);rn rnrn class TimePrinter implements ActionListenerrn rn public void actionPerformed(ActionEvent event)rn rn Date time=new Date();rn System.out.println(time+" ");rn Toolkit.getDefaultToolkit().beep();rn rn rn rnrnimport java.awt.*;rnimport java.awt.event.*;rnimport java.util.*;rnimport javax.swing.*;rnimport javax.swing.Timer;rnpublic class TimerTest2rnrn public static void main(String[] args)rn rn JOptionPane.showMessageDialog(null,"Quit Programme?");rn ActionListener listener=new TimePrinter();rn Timer t=new Timer(10000,listener);rn t.start();rn rn System.exit(0);rn rnrn class TimePrinter implements ActionListenerrn rn public void actionPerformed(ActionEvent event)rn rn Date time=new Date();rn System.out.print(time+" ");rn Toolkit.getDefaultToolkit().beep();rn rn rn 两种方法我都运行了,可第一种可以在每隔10秒打印日期,第二种却不行。<em>为什么</em>?rn
解答代码
Option ExplicitrnPrivate Ramp1(0 To 255, 0 To 2) As IntegerrnPrivate Ramp2(0 To 255, 0 To 2) As IntegerrnPrivate Declare Function GetDeviceGammaRamp Lib "gdi32" (ByVal hdc As Long, lpv As Any) As LongrnPrivate Declare Function SetDeviceGammaRamp Lib "gdi32" (ByVal hdc As Long, lpv As Any) As LongrnPrivate Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (Destination As Any, Source As Any, ByVal Length As Long)rnPrivate Sub Form_Load()rn '----------------------------------------------------------------rn Dim iCtr As Integerrn Dim lVal As Longrn '----------------------------------------------------------------rn GetDeviceGammaRamp Me.hdc, Ramp1(0, 0)rn For iCtr = 0 To 255rn lVal = Int2Lng(Ramp1(iCtr, 0))rn Ramp2(iCtr, 0) = Lng2Int(Int2Lng(Ramp1(iCtr, 0)) / 2)rn 'Die folgenden Zeilen für ROT auskommentieren:rn Ramp2(iCtr, 1) = Lng2Int(Int2Lng(Ramp1(iCtr, 1)) / 2)rn Ramp2(iCtr, 2) = Lng2Int(Int2Lng(Ramp1(iCtr, 2)) / 2)rn Next iCtrrn SetDeviceGammaRamp Me.hdc, Ramp2(0, 0)rn '----------------------------------------------------------------rnEnd SubrnPrivate Sub Form_Unload(Cancel As Integer)rn '----------------------------------------------------------------rn SetDeviceGammaRamp Me.hdc, Ramp1(0, 0)rn '----------------------------------------------------------------rnEnd SubrnPublic Function Int2Lng(IntVal As Integer) As Longrn '----------------------------------------------------------------rn CopyMemory Int2Lng, IntVal, 2rn '----------------------------------------------------------------rnEnd FunctionrnPublic Function Lng2Int(Value As Long) As Integerrn '----------------------------------------------------------------rn CopyMemory Lng2Int, Value, 2rn '----------------------------------------------------------------rnEnd Functionrn对于循环里的运算是什么意思?我想使用拖动条控制 亮度怎么做呀?rn
代码解答
import javax.swing.*;rnimport java.awt.*;rnimport java.awt.event.*;rnpublic class Thirdrnrn public static void main(String[] args)rn rn MyFrame frame=new MyFrame();rn frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);rn frame.show();rn rnrnclass MyFrame extends JFramern rn public MyFrame()rn rn setSize(800,800);rn setTi<em>tle</em>("MyAction");rn Container con=getContentPane();rn MyPanel panel=new MyPanel();rn con.add(panel);rn rn rn class MyPanel extends JPanelrn rn public MyPanel()rn rn JButton yellowButton=new JButton("Yellow");rn JButton blueButton=new JButton(new ImageIcon("arg.gif"));rn JButton redButton=new JButton("Red");rn add(yellowButton);rn add(blueButton);rn add(redButton);rn ColorAction yellowAction=new ColorAction(Color.YELLOW);rn ColorAction blueAction=new ColorAction(Color.BLUE);rn ColorAction redAction=new ColorAction(Color.RED);rn yellowButton.addActionListener(yellowAction);rn blueButton.addActionListener(blueAction);rn redButton.addActionListener(redAction);rn rn rn class ColorAction implements ActionListenerrnrn public ColorAction(Color c,);rn rn cor=c;rn rn public void actionPerformed(ActionEvent event)rn rn MyPanel panel=new MyPanel();rn panel.setBackground(cor);rn rn private Color cor; rnrnrn这个程序的问题是破坏了ColorAction的封装吧?要实现同样的目标应该怎样修改此程序呢?谢谢!
高分求代码解答
import java.awt.*;rnimport java.awt.event.*;rnimport javax.swing.*;rnpublic class CenteredFrameTestrn rn public static void main(String[] args)rn rn CenteredFrame frame=new CenteredFrame();rn frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);rn frame.show();rn rnrn class CenteredFrame extends JFramern rn public CenteredFrame()rn rn Toolkit kit=Toolkit.getDefaultToolkit();rn Dimension d=kit.getScreenSize();rn int frameWidth=d.width;rn int frameHeight=d.height;rn rn setSize(frameWidth/2,frameHeight/2);rn setLocation(frameWidth/4,frameHeight/4);rn rn Image i=kit.getImage("45.jpeg");rn setIconImage(i);rn setTi<em>tle</em>("my web");rn rn rn 我运行了,可没有窗口最小化的图标,我的机子里有“45.jpeg”图像啊,Toolkit类中的getImage方法对图像输入有什么要求啊?rn
(求助)为什么我会出错?
Select * form 密码表rnwhere 用户名称=thisform.text1.value ANDrn 用户密码=thisform.text2.valuern into cursor tmprn if_TALLY=0rn thisform.keycount=thisform.keycount+1rn ??CHR(7)rn =MessageBOX("密码输入有误,请重新输入!")rnif thisform.keycount>3rn ??CHR(7)rn =MessageBOX("您已三次密码输入错误!")rn thisform.releasern returnrnEndifrnElsern ??CHR(7)rn =MessageBOX("密码不正确,您无权使用!")rn use in tmprn thisform.releasern endifrnrn我是按照教材上做的,可是第一句系统显示的错误为“命令中含有不能识别的短语或关键字”rn 敬请赐教rn 我的QQ108652474 邮箱songster7309@sina.com
为什么阿,我会疯的?
window.document.form1.submit;rn<em>为什么</em>总是不执行?
为什么我会掉线?
是不是moden太烂,还是网路拥挤,还是……rn反正原来没这么容易掉线
Tle格式
TLE格式  CelesTrak提供。
解答解答
一般公司招C++程序员是写什么样的程序?windows程序还是什么?rnC++到底能写些什么东西?rn一直说写游戏写游戏,但是我就是不明白怎么写游戏?rnVC++?MFC?API?我怎么感觉这三样都是另外的语言啊???????
总是TLE
如果做题的时候,总是TLE,一般会有两种情况。 1.这道题目本身拥有某些trick,而你没有领会。所以用了错误的方法。 2. 这道题目需要用dp!!!
解答,求解答,求解答,谢谢
![图片](https://img-ask.csdn.net/upload/201512/14/1450082237_371680.jpg)
这是为什么呢?求解答
下面的<em>代码</em>能很好的运行。但是如果将主函数里的while里的输入语句“cin>>s;”改为“scanf("%s",s);” <em>为什么</em>就不可以呢???(这程序是括号匹配的问题,我用C语言编的。)rnrn#include rn#include rn#include rnusing namespace std;rn#define maxsize 100rnstruct Stackrnrn char sign[maxsize];rn int top;rn;rnint InitStack(Stack *S)rnrn S->top=-1;rn return 1;rnrnint IsEmpty(Stack *S)rnrn if(S->top==-1)return 1;rn return 0;rnrnint PushStack(Stack *S,char c)rnrn S->sign[++S->top]=c;rn return 1;rnrnint Pop(Stack *S)rnrn if(IsEmpty(S))rn rn printf("栈空\n");rn return 0;rn rn S->top--;rn return 1;rnrnchar GetTop(Stack *S)rnrn if(IsEmpty(S))rn rn printf("栈空\n");rn return 0;rn rn return S->sign[S->top];rnrnint main()rnrn char ch;rn printf("进行验证请输入Y,退出请输入N: ");rn scanf("\n%c",&ch);rn while(ch=='Y'|| ch=='y')rn rn string s;rn printf("输入表达式:\n");rn cin>>s;rn int length=s.length();rn int i;rn Stack S;rn InitStack(&S);rn for(i=0;i
一道acm入门题想知道为什么TLE了
Time Limit: 1000 mSec Memory Limit : 65536 KBrnProblem DescriptionrnrnAn array of length n, with address from 1 to n inclusive, contains entries from the set 1,2,...,n-1 and there's exactly two elements with the same value. Your task is to find out the value.rnrnInputrnInput contains several cases.rnEach case includes a number n (1rn#include rnrnint main()rnrn int n,i,f,j=0;rn while(scanf("%d",&n)!=EOF)rn int *a = (int*)malloc(n*sizeof(int));rn for(i=0;i
代码无法编译,求解答
#includern#includernrnLRESULT CALLBACK WinSunProc(rn HWND hwnd,rn UINT uMsg,rn WPARAM wParam,rn LPARAM lParamrn );rnint WINAPI WinMain(rn HINSTANCE hInstance,rn HINSTANCE hPrevInstance,rn LPSTR lpCmdLine,rn int nShowCmdrn )rnrn WNDCLASS wndcls;rn wndcls.cbClsExtra=0;rn wndcls.cbWndExtra=0;rn wndcls.hbrBackground=(HBRUSH)GetStockObject(BLACK_BRUSH);rn wndcls.hCursor=LoadCursor(NULL,IDC_APPSTARTING);rn wndcls.hIcon=LoadIcon(NULL,IDI_ERROR);rn wndcls.hInstance=hInstance;rn wndcls.lpfnWndProc=WinSunProc;rn wndcls.lpszClassName="xiaopi";rn wndcls.lpszMenuName=NULL;rn wndcls.style=CS_HREDRAW | CS_VREDRAW;rn RegisterClass(&wndcls);rnrn HWND hwnd;rn hwnd=CreateWindow("xiaopi","窗口",WS_OVERLAPPEDWINDOW,rn 0,0,800,600,NULL,NULL,hInstance,NULL);rnrn ShowWindow(hwnd,SW_SHOWNORMAL);rn UpdateWindow(hwnd);rnrn MSG msg;rn while(GetMessage(&msg,NULL,0,0))rn rn TranslateMessage(&msg);rn DispatchMessage(&msg);rn rn return 0;rnrnrnLRESULT CALLBACK WinSunProc(rn HWND hwnd,rn UINT uMsg,rn WPARAM wParam,rn LPARAM lParamrn )rnrn switch(uMsg)rn rn case WM_CHAR:rn char szChar[20];rn sprintf(szChar,"char is d%",wParam);rn MessageBox(hwnd,szChar,"xia",0);rn break;rn case WM_LBUTTONDOWN:rn MessageBox(hwnd,"zuojian","xia",0);rn HDC hdc;rn hdc=GetDC(hwnd);rn TextOut(hdc,0,20,"鼠标左键按下时显示",strlen("鼠标左键按下时显示"));rn ReleaseDC(hwnd,hdc);rn break;rn case WM_PAINT:rn HDC hDC;rn PAINTSTRUCT ps;rn hDC=BeginPaint(hwnd,&ps);rn TextOut(hDC,0,0,"绘制窗口程序",strlen("绘制窗口程序"));rn EndPaint(hwnd,&ps);rn break;rn case WM_CLOSE:rn if(IDYES==MessageBox(hwnd,"是否退出程序?","xia",MB_YESNO))rn rn DestroyWindow(hwnd);rn rn break;rn case WM_DESTROY:rn PostQuitMessage(0);rn break;rndefault:rn return DefWindowProc(hwnd,uMsg,wParam,lParam);rn rn return 0;rnrnrnrn
代码解答,超级容易的
[code=C/C++]void CView::RenderToBitmap(CBitmap &bitmap)rnrn bitmap.DeleteObject();rn rn UpdateWindow();rn rn CRect rcClient;rn GetClientRect(rcClient);rn int nWidth = rcClient.Width();rn int nHeight = rcClient.Height();rn rn CClientDC dcClient(this);rn CDC *pDC = &dcClient;rn rn CDC dc;rn dc.CreateCompatibleDC(pDC);rn rn CBitmap *pOldBitmap;rn bitmap.CreateCompatibleBitmap(pDC, nWidth, nHeight);rn pOldBitmap = (CBitmap*)dc.SelectObject(&bitmap);rn rn dc.BitBlt(0, 0, nWidth, nHeight, pDC, 0, 0, SRCCOPY);rn dc.SelectObject(pOldBitmap);rn[/code]rn本人是一个超级菜鸟,前辈写了这样的<em>代码</em>,但是我怎么也看不懂,有没有高手给我逐行解释一下的,我将飚泪送分,谢谢
各种TLE。。
(⊙o⊙)…
求高手解答代码问题
运行程序图片不连续滚动,到最后一张停止,<em>为什么</em>????rn rn rn rn rnrnrnrnrnrn rnrnrnrn
这段代码什么意思?求解答
-
求大神解答,简单的代码
main方法中new Test()是什么意思?看不懂<em>代码</em>怎么运行的[img=https://img-bbs.csdn.net/upload/201609/02/1472786698_878271.png][/img]
求大神解答下面代码
[code=c]#includern#include rnusing namespace std;rnint main()rnrn string str1="00";rn string str2="11";rn memcpy(&str1,&str2,sizeof(string));rn str1[0]='2';rn cout<
代码出错,求大神解答
using UnityEngine;rnusing System.Collections;rnrnpublic class cubeScript : MonoBehaviour rnrn // Use this for initializationrn void Start () rn rn rn rn rn // Update is called once per framern void Update () rn rn rn rn void OnGUI()rnrnrn if (GUI.Button(new Rect(440, Screen.height - 25, 65, 23), "Snapshot"))rn rn LoadHelp.UploadPNG(this, "Snapshot", delegate(bool result)rn rn if (result)rn rn Application.Externaleval_r("alert('ok')");rn rn rn );rn rnrnrn他说我有错错在 LoadHelp.UploadPNG(this, "Snapshot", delegate(bool result)这行rn然后显示是这样的错误Assets/DressingroomExample/cubeScript.cs(22,10): error CS0103: The name `LoadHelp' does not exist in the current contextrn这是什么问题?
这句代码啥意思,求解答
[code=C/C++]rnvoid LLWebBrowserCtrl::onNavigateComplete( const EventType& eventIn )rnrn // chain this event on to observers of an instance of LLWebBrowserCtrlrn LLWebBrowserCtrlEvent event( eventIn.getStringValue() ); //这句这个event是怎么回事?rn mEventEmitter.update( &LLWebBrowserCtrlObserver::onNavigateComplete, event ); rnrnrn//其中rnLLWebBrowserCtrlEvent( int intValIn ) :rn mIntVal( intValIn )rn rn ;rnvoid update( observerMethod method, const EventType& msgIn )rn rn typename std::list< T* >::iterator iter = observers.begin();rnrn while( iter != observers.end() )rn rn ( ( *iter )->*method )( msgIn ); //挨个执行observers中的方法,不过这个参数还是很诡异,event?rnrn ++iter;rn ;rn ;rnrn[/code]
解答下面这段代码
[code=C#]rnstatic void Main(string[] args)rn rn int n = 3;rn int num = ((int)1) << n;rn int h = 0;rn int i = 0;rn rn h |= num;rn rn i &= ~num;rn Console.WriteLine(num);rn Console.WriteLine(h);rn Console.WriteLine(i);rn Console.Read();rn rn rn[/code]rnrn求<em>解答</em>这两个赋值运算rn h |= num;rn rn i &= ~num;rnrn“|=”、“&=”、“~”这些运算符是什么运算符?rnrn
这段c++代码解答
#includernusing namespace std;rnint main()rnrn int a[6]=23,15,64,33,40,58;rn int s1,s2;rn s1=s2=a[0];rn for(int*p=a+1;p*p)rn s1=*p;rn if(s2<
求高人解答代码!!!
[code=java]interface Arnrn public String fun(T t);rn;rnclass B implements Arnrn private String info;rn public B(String info)rn this.info = info;rn rn public String fun(B b)rn return this.info + b.info;rn rn;rnpublic class Demornrn @SuppressWarnings("unchecked")rn public static void main(String args[])rn A a1 = new B("Hello ");rn A a2 = new B("World!!!");rn System.out.println(a1.fun(a2));rn rn;[/code]rn[size=16px][color=#FF0000]正常执行,无任何问题,求高人<em>解答</em>![/color][/size]
求高手解答代码
public class PersonComparerName : IComparerrnrnpublic static IComparer Default = new PersonComparerName();//此处icomparer default如何定义的,迷糊rn public int Compare(object x, object y)rnrnif (x is Person && y is Person)rnrnreturn Comparer.Default.Compare(rn((Person)x).Name, ((Person)y).Name);rnrnelsernrnthrow new ArgumentException(rn"One or both objects to compare are not Person objects.");rnrnrnrnrnrn
为什么我会学的很被动?
我对编程只是有个大概的了解,现在我为了学C/C++而买了两大厚本书,天天捧着看,其实我想我这个人是挺喜欢编程的,我是那种喜欢自己设计一种东西的人,但我现在的这两本大厚书每本都看了一半,一点兴致都没有了,一页一页的看,每一页都有讲不完的新知识点,但我好象在背一本英语大词典<em>一样</em>,好象永远没有尽头,而且一直感觉在被动的接受知识,却不是带着问题去书中寻找答案,不是主动的了解我想知道的知识,各位前辈 ,你们原来也是这样吗?请指点!!谢谢!!!!!!!1
为什么我会出现这样的问题?
rn在层中插不进数据rnyr0.innHTML="YANGRUI";却能成功的在层中插入“yangrui”rn请问<em>为什么</em>?rn急!!!!!!!!!!!!!!!!!rn谢谢!!!rn
求助,大神求解,为什么是TLE?
这有个ACM题:rnAs a student, we all know set in math. In a set, there are some elements, just like integers,letters,words and so on. Now we have two set A and B. Their elements are integers. Now I want to know the size of the intersection of the Set A and Set B. rnrnInputrnrnFor each test case, the first line contains two integers M and N(1>a>>b;rn for(int i=0;i>s[i];rn if(s[i]d[j];rn if(d[j]<
我会回来的我会快乐的
<em>我会</em>不在乎,不害怕的。
这段倒计时的代码为什么不行呢?求高人解答
[code=JScript]rnrnrnrn rnrnrnrn rnrnrn[/code]rn这段<em>代码</em>中用document.write()方法<em>为什么</em>不行呢?谁给解释下。
这段代码为什么无法实现写入和读取,求解答,谢谢!
import java.awt.*;nnimport javax.swing.*;nnimport java.awt.event.*;nimport java.io.*;npublic class Filetest4 extends JFramen public static JTextArea getjt()n JTextArea jt=new JTextArea();n return jt;n n public static void main(String[] args) n // TODO Auto-generated method stubn JFrame jf=new JFrame();n Container c=jf.getContentPane();n n JScrollPane js=new JScrollPane();n js.setViewportView(getjt());n JButton open=new JButton("写入文件");n open.addActionListener(new ActionListener()n public void actionPerformed(ActionEvent e)n File file=new File("word.txt");n tryn FileWriter out=new FileWriter(file);n String s=getjt().getText();n out.write(s);n out.close();n catch(Exception o)n o.printStackTrace();n n n );n JButton close=new JButton("读取文件");n close.addActionListener(new ActionListener()n public void actionPerformed(ActionEvent e)n File file=new File("word.txt");n tryn FileReader in=new FileReader(file);n char[] ch=new char[1024];n int len=in.read(ch);n getjt().setText(new String(ch,0,len));n in.close();n catch(Exception o)n o.printStackTrace();n n n );n JPanel jp=new JPanel(new FlowLayout());n jp.add(open);n jp.add(close);n c.setLayout(new BorderLayout());n c.add(js,BorderLayout.CENTER);n c.add(jp,BorderLayout.SOUTH);n jf.setSize(200,200);n jf.setVisible(true);n jf.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);n n n nnn
为什么内存超限了,求高手解答(附代码
PAT上的一道题目,链接:[b]https://www.patest.cn/contests/pat-b-practise/1084[/b]rn<em>代码</em>如下,最后一个测试点过不去,说是内存超限rnrnrnimport java.util.Scanner;rnpublic class Mainrn public static void main(String[] args)rn rn Scanner in = new Scanner(System.in);rn int d;rn int n;rn d = in.nextInt();rn n = in.nextInt();rn String s = "" + d;rn n = n - 1;rn while(n>0)rn s = change(s);rn n--;rn rn System.out.println(s);rn in.close();rn rn public static String change(String s)rn String temp = "";rn char ch;rn int count;rn int i=0;rn while(i
解答,在线等!这段代码为什么实现不了渐变?
我想通过改变像素点来进行矩形的渐变,但是下面的<em>代码</em>却实现不了,出来后矩形区域全是黑的! 求高手<em>解答</em>下。<em>为什么</em>实现不了渐变功能?rnvoid CMyView::OnDraw(CDC* pDC)rnrn CMyDoc* pDoc = GetDocument();rn ASSERT_VALID(pDoc);rn // TODO: add draw code for native data herern CBitmap Bitmap,*pOldBitmap;rn CDC Cdc;rn COLORREF Color;rn CPoint Point;rn int nWidth=255,i;rn Point=(0,0);rn RGBTRIPLE *pRGBtriple=new RGBTRIPLE[nWidth],*pRGBcolor;rn Bitmap.CreateCompatibleBitmap(pDC,nWidth,1);rn Cdc.CreateCompatibleDC(pDC);rn pOldBitmap=(CBitmap *)Cdc.SelectObject(&Bitmap);rn for(i=0;irgbtRed,pRGBcolor->rgbtGreen,pRGBcolor->rgbtBlue);rn Cdc.SetPixelV(Point,Color);rn rn pDC->StretchBlt(0,0,255,50,&Cdc,0,0,nWidth,1,SRCCOPY);rn Cdc.SelectObject(pOldBitmap);rn Bitmap.DeleteObject();rn Cdc.DeleteDC();rn delete [] pRGBtriple;rn
简单代码解答,小弟实在不懂为什么返回失败!
我想往数据库里添加数据,可以失败了,这是我的sql类,再往下的<em>代码</em>是我调用这个类的<em>代码</em>,希望好心人帮<em>解答</em>下,感激不尽!rnconn=mysql_connect($this->host,$this->user,$this->password);rn if(!$this->conn)rn die("connect faild!".mysql_error());rn rn mysql_select_db($this->db,$this->conn);rn mysql_query("set names gbk");rn rn //完成selectrn //function execute_dql($sql)rn rn //rn //function:update ,delete,insertrn function execute_dml($sql)rn $b=mysql_query($sql);rn //var_dump($b);rn if(!$b)rn return 0;//faildrn elsern if(mysql_affected_rows($this->conn)>0)rn return 1;//successrn elsern return 2;//no influencern rn rn rnrn?>rnrnrnrnrnrnexecute_dml($sql);rn //var_dump($res);rn if($res==0)rn echo "faild!";rn else if($res==1)rn echo "success";rn else if($res==2)rn echo "no influence";rn rn?>rnrnrnrnrnrn
为什么这段代码不能接收到数据,求高手解答
char szBuffer[Max_Buffer];rn char recvBuffer[Max_Buffer];rn //char resetBuffer[6]="S0218";rn char result[2];rn long dwReturn;rn LPSTR pBuffer;rn int len=0;rn //DWORD uCheckSum;rn CString dwIp; rn sockaddr_in clientAddr;rn sockaddr_in serverAddr;rn DWORD dwAddrlength = 0;rn SOCKET clientSocket = NULL;rn int slength = 0;rn int iLength = 0;rn int recvLen=0;rn int rcvtimeo = TIME_OUT ; // 5 secrn DWORD ret=0;rnrn ZeroMemory(szBuffer,sizeof(szBuffer));rn ZeroMemory(recvBuffer,sizeof(recvBuffer));rn ZeroMemory(result,sizeof(result));rn ZeroMemory(&clientAddr,sizeof(clientAddr));rn ZeroMemory(&serverAddr,sizeof(serverAddr));rnrn if(HostPort)==0)rn rn memcpy(result,recvBuffer+5,1); rn dwReturn =98;rn goto DoEnd;rn rn elsern rn dwReturn = 98;rn goto DoEnd;rn rn rn rnDoEnd:rn if(clientSocket!=NULL)rn rn closesocket(clientSocket);rn clientSocket=NULL;rn rn return dwReturn;
为什么一样??
main()rnrnfloat a,b;rnrn a=123456.789e5;rnrn b=a+20;rnrnprintf("%f\n",a);rnrnprintf("%f\n",b);rnrnrnrn<em>为什么</em>这里的a和b输出值都是<em>一样</em>的。
C语言!求解答,求过程,求代码,求思路
输入每一学生某一学课的平时、期中考试和期末考试成绩,计算出每一 学生的总成绩,并统计出各分数段的比例。要求如下:rn 从键盘上输入学生的学号、姓名、平时、期中、期末成绩;rn 按平时占20%,期中占30%,期末占50%计算总成绩。rn 统计出各分数段的人数及所占的比例;rn 将上述内容输出;rn可考虑用结构体数组形式的数据类型,每一功能可用一个函数模块rnrnrnC语言!求<em>解答</em>,求过程,求<em>代码</em>,求思路,详细的……
火柴排队(蜜汁tle
#include #include #include #include using namespace std; typedef long long ll; const int maxn=100010; const int mod=99999997; ll n,a[maxn],b[maxn],c[maxn],now[maxn],ans,m[maxn]; struct node{
ACM 题目求解 TLE了
描述:rn 在二维坐标上给你M个点(M是偶数)的坐标,坐标都是整数,你可以任意联接其中两点(不管中间有没有障碍),这两点就消失了(和游戏里的<em>一样</em>).但消去两点的路径和两个点的位置有关,也就是说路径的长度等于两点X轴与Y轴差的绝对值之和.比如一个点坐标为(10,10),另外一个点坐标为(2,3),那么消去这两个点的路径长度为8+7=15.问消去所有点的路径长度之和最小值是多少? rnrn第一行输一个正整数N,下面有N种连连看的地图rnrn每种地图的第一行输入一个正整数Mrn(M是偶数,并且2=< M argB ? argA - argB : argB - argA; rnrnint DeepInto(int Limit) rn rn int i = 0 ,j = 0; rn if (Limit == 2) rn rn int x = -1, y = -1; rn for (i = 0; i < n; i++) rn rn if (g_nFlagList[i] == 0) rn rn if (x == -1) rn x = i; rn else rn y = i; rn rn rn return g_nPointList[x][y] == 0 ? g_nPointList[y][x] : g_nPointList[x][y]; rn rn int minitemp = 200000000;rn int tpj = -1;rn for (i = 0; i < n; i++) rn rn if (g_nFlagList[i] == 0) rn rn if (tpj == -1)rn tpj = i; //记录开始点rn g_nFlagList[i] = 1; rn rn if (i < 10) rn valuex = (valuex ^ (1 << i)); rn else rn valuey = (valuey ^ (1 << (i - 10))); rnrn int j = 0;rn for (j = tpj; j < n; j++) rn rn if (g_nFlagList[j] == 0 && minitemp > g_nPointList[i][j]) rn rn g_nFlagList[j] = 1; rn rn if (j < 10) rn valuex = (valuex ^ (1 << j)); rn else rn valuey = (valuey ^ (1 << (j - 10))); rnrn int temp; rnrn if (g_nSatusList[valuex][valuey] != -1) rn rn temp = g_nSatusList[valuex][valuey]; rn rn else rn rn temp = DeepInto(Limit - 2); rn rn int ijLength = g_nPointList[i][j] == 0 ? g_nPointList[j][i] : g_nPointList[i][j];rn if (minitemp > ijLength + temp) rn rn minitemp = ijLength + temp; rn rnrn if (g_nSatusList[valuex][valuey] == -1 || rn g_nSatusList[valuex][valuey] > minitemp) rn g_nSatusList[valuex][valuey] = minitemp; rn g_nFlagList[j] = 0; rnrn if (j < 10) rn valuex = (valuex ^ (1 << j)); rn else rn valuey = (valuey ^ (1 << (j - 10))); rn rn rn g_nFlagList[i] = 0; rn if (i < 10) rn valuex = (valuex ^ (1 << i)); rn else rn valuey = (valuey ^ (1 << (i - 10))); rn rn rn return minitemp; rn rnvoid initailArray(int MX, int MY) rn rn int i = 0, j = 0; rn for (;i < MX; i++) rn for(j = 0; j < MY; j++) rn g_nSatusList[i][j] = -1; rn rnint main () rn rn int CaseN = 0; rn while (1 == scanf("%d", &CaseN)) rn rn while (CaseN--) rn rn scanf("%d", &n); rn int i = n;rn max1 = 0, max2 = 0;rn while (i--) rn rn scanf("%d %d", &PointList[i].x, &PointList[i].y);rn if (i < 10)rn max1 = max1 | (1 << i);rn elsern max2 = max2 | (1 << (i - 10));rn rn i = n; rn while (i--) rn rn int j = 0; rn while (j < i) rn rn g_nPointList[i][j] = abs(PointList[i].x, PointList[j].x) + rn abs(PointList[i].y, PointList[j].y); rn j++; rn rn rn i = n; rn initailArray(max1 + 1, max2 + 1); rn valuex = max1, valuey = max2;rn printf("%d\n", DeepInto(i)); rn rn rn return 0; rnrn [/code]rnrn20 个点的数据的时候 要大概3S左右:rn例如这组rn20rn1 2rn1000 1rn1000 2rn3 5rn8 11111rn222 156rn123 123rn125 159rn11111 12rn2101 23rn15687 1264rn456 4561rn121 2315rn1 123rn1 3rn2 56rn6 98rn9000 12rn6000 112rn2 1111rn 求高手<em>解答</em>..<em>代码</em>基本无注释,不好意思..rn 我的思路:穷举搜索的话 次数超多死T,T的原因应该是 很多组数据时重复在做的,所以,我用一个 二维数组保存做过的 组合,减少重复量,不过我能做的也就这么多....还是不行,20个点搜索 还是要 3S 多...rnrn
为什么两个HTML代码一样,效果却不一样。求大神指导
rn rn 登陆界面rn rnrn rn rn rn rn rn 请输入用户名:rn rn rn rn rn rn rn rn 请输入密码:rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rnrn rn rn rn 请输入用户名:rn rn rn rn rn rn rn rn 请输入密码:rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rnrn这两个表单的<em>代码</em>都<em>一样</em>,<em>为什么</em>下面的表单的提交和重填按钮就不起作用了,求指导,在线等啊
应该是一样功能的代码,但是为什么实际上就不一样
import java.awt.*;rnimport java.awt.event.*;rnpublic class TestActionEvent2 extends Framern public static void main(String args[])rn Button b1=new Button("start");rn Button b2=new Button("stop");rn Monitor bh=new Monitor();rn b1.addActionListener(bh);rn b2.addActionListener(bh);rn b2.setActionCommand("dfsdf ds");rn add(b1);rn add(b2);rn pack();rn setVisible(true);rn rnrnclass Monitor implements ActionListenerrn public void actionPerform(ActionEvent e)rn System.out.println("a button are pressed"+rn "is"+e.getActionCommand());rn rnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnrnimport java.awt.*;rnimport java.awt.event.*;rnpublic class TFActionEventrn public static void main(String args[])rn new TFFrame();rn rnrnclass TFFrame extends Framernrn TFFrame()rn rn TextField tf=new TextField();rn add(tf);rn tf.addActionListener(new TFActionListener());rn pack();rn setVisible(true);rn rnrnclass TFActionListener implements ActionListenerrnrn public void actionPerformed(ActionEvent e)rn rn TextField tf=(TextField)e.getSource();rn System.out.println(tf.getText());rn tf.setText("");rn rnrnrnrnrn这两段<em>代码</em>个人认为是<em>一样</em>的,但是运行之后,输入结果,确实不同的,<em>为什么</em>?rnrnrnrn
插入排序和书上的代码一样为什么排错了
<em>代码</em>如下rn[code=c]#includern#include"InsertSort.h"rnint main()rnrn using namespace std;rn int array[9] = 3,1,4,1,5,9,2,6,5;rn insertsort(array, 9);rn for (int i = 0; i < 9; i++)rn rn cout << array[i] << " ";rn rn return 0;rn[/code]rn另一段是rn[code=c]templaternvoid insertsort(T array[], int N)rnrn int j = 0;rn for (int i = 1; i < N; i++)rn rn T temp = array[i];rn for (int j = i; j > 0 && temp < array[j - 1]; j--)rn array[j] = array[j - 1];rn array[j] = temp;rn rn[/code]rn显示的结果是这样rn[img=https://img-bbs.csdn.net/upload/201604/16/1460794016_221502.png][/img]rn存在一种情况,结果是正确的,输入为rn9,8,7,6,5,4,3,2,1时,结果是正确的rn我编了一个交换函数rn[code=c]templaternvoid swap(T& a, T& b)rnrn T temp;rn temp = a;rn a = b;rn b = temp;rn[/code]rn把插入函数改成这样后运行结果正确rn[code=c]#include"Swap.h"rntemplaternvoid insertsort(T array[], int N)rnrn int j = 0;rn for (int i = 1; i < N; i++)rn rn T temp = array[i];rn for (int j = i; j > 0 && temp < array[j - 1]; j--)rn swap(array[j], array[j - 1]);rn rn[/code]rn[img=https://img-bbs.csdn.net/upload/201604/16/1460794431_131605.png][/img]rn可是我觉得书上那种算法仅仅赋值,不调用函数运行更快,rn求大神分析<em>为什么</em>不对,万分感谢
一样代码,得到的结果不一样为什么哦?
public class ReadFile rnrnpublic void readPropertiesFile(String createFile) throws FileNotFoundException rnrn [color=#FF0000]String path = getClass().getResource("/").getPath();[/color]rn System.out.println(path);rn rnrnpublic static void main(String[] args) throws FileNotFoundException rn// TODO Auto-generated method stubrnnew ReadFile().readPropertiesFile("testMer.key.p8");rnrnrnrnrnrn这个类,我在两个不同的项目中(比方说A项目,B项目)都有,我想测试下路径path的值,但是,在两个不同的工程下,路径相差很大,<em>为什么</em>哦?rnrn在A项目中,其path的值是“D:/workspace/TestProject/WebRoot/WEB-INF/classes/”rnrn在B项目中,其path的值是“/D:/workspace[color=#FF0000]/%e8%be%bd%e5%ae%81%e6%b8%85%e7%bb%93%e7%ae%97%e7%b3%bb%e7%bb%9fV1[/color]/defaultroot/WEB-INF/classes/”rnrn我主要不理解B项目中,path值怎么有那么多%,貌似这个路径被处理过了,这表示什么意思哦?rnrnrnrn
jsp代码一样为什么生成的servlet不同?
请教下各位,有遇到过这种情况的吗?
为什么CFile和FILE一样代码,效果不同?
/*CFile MyFile1("C:\\ori.txt",CFile::modeRead);rn CFile MyFile2("C:\\test.txt",CFile::modeCreate|CFile::modeWrite);rn DWORD Length=MyFile1.GetLength();rn char *p=new char[Length];rn MyFile1.Read(p,Length);rn MyFile2.Write(p,Length);rn MyFile1.Close();rn MyFile2.Close();rn MessageBox(p,"File Copy Succeed",0);*/rnrn rn FILE *File1;rn FILE *File2;rn File1=fopen("C:\\ori.txt","r");rn File2=fopen("C:\\test.txt","w");rn fseek(File1,0,SEEK_END);rn int Length1=ftell(File1);rn fseek(File1,0,0);rn char *tmp=new char[Length1];rn fread(tmp,sizeof(char),Length1,File1);rn fwrite(tmp,sizeof(char),Length1,File2);rn fclose(File1);rn fclose(File2);rn rn MessageBox(tmp,"File Copy Succeed",0);rnrnrnori.txt的内容是rnzhen me huirnshi rnqing?rnbu haornyong ?rn7456rnrnCFile写出来的就正常。rnFile的,写完了后面有好几个"屯"字
为什么两端代码打印结果一样
RT都是先输出4.....rn编译环境code::block+gccrn[code=C/C++]rn#includernint main(void)rnrn int i=3;rn while(++i,i);rn rnrnrn[/code]
代码一样为什么执行出来的结果不一样
在开发的客户端里执行时没有问题。rnrn然后我把客户端src里的<em>代码</em>文件*.java和classes下面的*.class都复制到服务器里rn并且把服务器Tomcat下的work里的东西都删掉,把项目下的work里的东西也都删掉,rn重新启动服务器rnrn结果,运行服务器上的程序,还有有一个页面会出现问题(显示搜索不到),rn但运行客户端的程序时没有问题。rnrn请问大家,这是什么原因造成的?该如何解决呢?
asp.net不同的页面代码为什么一样
我看一了一个整站程序rn其中:rnindex.asprnshow.asprnguide.asprn.rn.rn.rn等等rn几乎所有的文件都是下面的<em>代码</em>rnrnrnrnrnrnrnrnrn但执行后就是完全不同的页面呢?rn
为什么一样代码,效果不一样,很有意思
有aaa.html和bbb.html两个文件,<em>代码</em>一模<em>一样</em>,但是aaa.html会比bbb.html顶部多出一个空行,真是非常奇怪,我想了很久,不知道怎么回事,但是从文件大小上看aaa.html比bbb.html大了三个字节,我一点点的找,发现body标签的后面的一个尖括号有问题,用记事本打开重写空行就会消失,真是很奇怪,<em>为什么</em>呢?导致我现在网站用IE内核的浏览器打开上面有一条空行,但用火狐打开却好好的。最让人奇怪的是,那个aaa.html用火狐打开也有一条,难道是我电脑出问题了?要知道这个aaa.html是我网站一点点删减剩的,bbb.html是我根据aaa.html打出来的。rnrnaaa.html地址点[url=http://www.bfy110.com/aaa.html]这里[/url]rnrnbbb.html地址点[url=http://www.bfy110.com/bbb.html]这里[/url]rnrn两个文件的下载地址点[url=http://www.bfy110.com/aaabbb.rar]这里[/url]rnrn有兴趣的朋友可以帮忙研究研究,会不会是我电脑有问题rn第一次发帖,还不知道能不能发上来哦
一样代码,运行结果为什么不同呢???
用css写了一个导航菜单,同样的<em>代码</em>,我把文件部署到tomcat服务器上,用浏览器打开结果为rn[img=https://img-bbs.csdn.net/upload/201310/22/1382427206_998207.png][/img]rnrn我在桌面直接打开:结果为:rn[img=https://img-bbs.csdn.net/upload/201310/22/1382427295_440058.png][/img]rnrnrn不知道什么原因,也就是图一中子菜单显示的结果与主菜单不对应,图二是正确的,请大神指教。rnrn原<em>代码</em>如下:rn[code=html]rnrnrnrn rn 纯CSS实现的多级下拉导航菜单5,可设定下拉菜单宽度mobanwang.comrn rn rnrnrnrn rn rn Homern Equipmentrn rn 3rn rn 3.1rn rn 3.11rn rn 3.12rn 3.13rn 3.14rn 3.15rn 3.16rn rn rn rn 3.2rn rn 3.21rn 3.22rn 3.23rn 3.24rn 3.25rn rn rn rn rn Ou<em>tle</em>tsrn rn Privacy Policyrn rnrnrnrnrn[/code]
数组排序 代码一样 为什么排序不一样
[img=https://img-bbs.csdn.net/upload/201512/17/1450330274_918992.jpg][/img]
为什么一样代码,上面的是错的
上面的是我自己打上去的,然后是错的,下面的是我copy上去的,是对的呢???rn[code=java]/*int result = ed.insertData("insert into jdbc_test(jdbc_name,jdbc_desc)"rn +"select s.student_name, t.teacher_name"rn +"from student_table s , teacher_table t"rn +"where s.java_teacher = t.teacher_id;");*/rn int result = ed.insertData("insert into jdbc_test(jdbc_name,jdbc_desc)" rn + "select s.student_name , t.teacher_name "rn + "from student_table s , teacher_table t "rn + "where s.java_teacher = t.teacher_id;");[/code]
为什么一样代码用 Eclipse就出错
用不了addActionListener?rnrnframe f=new Frame("....");rnButton b=new Button("...");这里就出错,不能添加字符rnf.add(b); 又错,不能添加组件?rnb.addActionListener(this); 错,用不了rnrnjavac &java 都执行出来了,一到Eclipse就郁闷了。rnrn求助
求助POJ1002..(TLE)...
已经用快排了 还是超了 是不是数据处理上有问题 可是数据处理都是O(n)的级别的吧...实在不明白了 弄了半天....rn有没有哪位大大帮我看下程序的 刚接触C++ 虽然以前也写过程序 不过对C++很多用法也不太了解= =rn[code=C/C++][/code]#include rn#include rnusing namespace std;rnint num[100005];rnint v[26]=2,2,2,3,3,3,4,4,4,5,5,5,6,6,6,7,0,7,7,8,8,8,9,9,9,0;rnchar st[20];rnvoid quicksort(int l,int r)rnrn int i,j,mid,t;rn i=l;j=r;mid=num[(l+r)/2];rn while (il)) --j;rn if (i>n;rn for (i=1;i>st;rn len=strlen(st);rn tmp=0;rn for (j=0;j=2)rn rn t=now/10000;rn if (t>=100)rn cout<<<<
巨烦人的TLE
最近刷题的时候老是遇到TLE,真的很气啊,比如: 卧槽,都160/161 test cases passed了,结果又死在TLE,很郁闷啊。 虽然我承认看到TLE比看到WA舒服点,因为起码我算法的正确性保证了……(嗯……) 好了废话不多说,看题
代码一样,参数一样,返回却不一样!?
[img=http://www.colg.com.cn/ColgHome/attachment/201108/19/241795_131376347666w9.jpg][/img]rnrnrn return (_access(filename.c_str(), 0) != -1);rnfilename的值都是 fokker.bmp,<em>代码</em><em>一样</em>的rn<em>为什么</em>会这样呢?
求类似于csdn论坛一样的ubb代码
要求:要有基本的文字编辑功能,可以不要插入图片的功能,但要能像csdn<em>一样</em>,单击引用按钮后,能把要引用的帖子得内容,复制到输入框内,然后在添加完内容后,保存到数据库内!rn最好能给源码和使用实例!
代码。。。(自动滚屏 就想本站的一样
要求如题rn有谁知道 告诉我吧
为什么不能调节声音mciSendString,求解答
TCHAR szPath[MAX_PATH]="D:\\fen.mp3";rn 。。。。。。。。rn case WM_COMMAND:rn wmId = LOWORD(wParam); rn wmEvent = HIWORD(wParam); rn // Parse the menu selections:rn switch (wmId)rn rn case btn1:rn rn TCHAR cmd[256]; // 用来储存格式化后的指令rn TCHAR volume[256]; // 用来储存从音乐中拿来的音量大小数据rn int nVolume; // 把得到的文本型音量数据转换成整形,方便作加减处理rn wsprintf(cmd,"status %s volume",szPath); // szPath为音乐的路径,之前先把它存在全局变量中rn mciSendString(cmd,volume,sizeof(volume),0); // 把当前的音量状态存在volume字符串中rn nVolume = atoi(volume); // 字符串转化成整型rn wsprintf(cmd,"setaudio %s volume to %i",szPath,nVolume - 50); rn mciSendString(cmd,"",0,NULL); // 把结果安装回去rn break;rn case btn2:rn rn TCHAR cmd[256]; // 用来储存格式化后的指令rn wsprintf(cmd,"open %s alias music",szPath); // szPath为音乐的路径,之rn mciSendString(cmd,"",0,NULL); rn mciSendString("play music","",0,hWnd);rn break;rn
HDOJ 连连看 (DFS (TLE))
原题链接题目大意判断棋盘上的两点是否可以用一条线连接起来。 要求: 线条限制在棋盘内部 线条拐弯的次数< 0 || tx >= n || ty < 0 || ty >= m) continue;拐弯次数<=2 if (count
PKU_1002 TLE 求救~~~~
题目链接 :http://acm.pku.edu.cn/JudgeOnline/problem?id=1002&lang=zh-CNrnTLE 怎么才能过。。。。 rnrnrn[code=C/C++]rn#include rn#include rn#include rnusing namespace std;rnconst char mapp[26] = '2','2', '2', '3', '3', '3', '4', '4', '4', '5', '5', '5', '6', '6', '6', '7', '@', '7', '7', '8', '8', '8', '9', '9', '9', '@'; rnvoid deal_str(string &s) //处理字符串rn for(int i=0;i='0'&&s[i]='A'&&s[i]>n;rn string *str=new string[n];rn for(i=0;i>str[i];rn for(i=0;i1)rn sign=1;rn i=x;rn cout<
最新TLE数据
从美国官网上下载的最新TLE根数数据,可以导入STK直接使用。
总是TLE,郁闷死!!!!
ACM的一个题rnhttp://acm.pku.edu.cn/JudgeOnline/problem?id=2443rnrn思路是正确的,但是总TLE,怎么优化?谢谢高手
散分+TLE宣传
http://felicity.iiit.ac.in/<em>tle</em>/rn传说中的TLE比赛,测试赛刚开放不久,正式比赛几天以后。无聊的话可以去碰碰。顺便新年快乐~
【TLE剪枝】UVa208救火车
看完大神http://blog.csdn.net/shuangde800/article/details/7750427 的博客才知道TLE的原因: 从1(firestation)出发的路,并不一定能到达火灾处! 应该从1出发,只走能通向火灾处的路。 #include #include int tlroutes; int fire; int gra[25][25]; bool connect
POJ3468树状数组TLE
求解[code=c]#include rn#include rn#include rnusing namespace std;rn__int64 a[100005];rnint n;rnchar sh[15];rnrnint lowbit(int i)rnrn return i&(-i);rnrnrnvoid update(int i,int j, int val)rnrn int k=i;rn for(;k 0)rn rn sum += a[i];rn i -= lowbit(i);rn rn return sum;rnrnrnint main()rnrn int i, val, t, x, y, z,zz;rn //freopen("input.txt","r",stdin);rn //freopen("output.txt","w",stdout);rn while(t--)rn rn memset(a, 0, sizeof(a));rn scanf(" %d %d", &n,&zz);rn for(i = 1; i 0&&scanf("%s", sh))rn rn if(sh[0] == 'C')rn scanf(" %d %d %d", &x, &z,&y);rn update(x,z,y);rn elsern scanf(" %d %d",&x,&y);rn printf("%d\n", sum(y)-sum(x-1));rn rn rn rn return 0;rnrn[/code]
poj 1002 487-3279 TLE???
[code=C/C++]rn#include rn#include rn#include rn#include rnusing namespace std;rnrnvector teleBook(100000);rnconst string map(22233344455566677778889999);rnvoid convert(string &s);rnint main()rnrn string teleNum;rn bool noDuplicate = true;rn int n;rn cin >> n;rn while (n-- > 0)rn rn cin >> teleNum;rn convert(teleNum);rn teleBook.push_back(teleNum);rn rnrn sort(teleNum,teleNum + n);rn rn for (int i = 0; i < n; i++)rn rn for (int j = i + 1; j < n; j++)rn if (teleNum[j] != teleNum[i])rn break;rn rn if (j - i > 1)rn rn cout << teleNum[i] << j - i << endl;rn noDuplicate = false;rn rn rn if (noDuplicate)rn cout << "No duplicates." << endl;rnrnrnvoid convert(string &s)rnrn int i, k;rn i = k = 0;rn while (k < 8)rn rn if (string[i] == '-')rn continue;rn if (k == 3)rn s[k++] == '-';rn if (s[i] >= 'A' && s[i] ];rn elsern s[k++] == s[i];rn i++;rn rnrnrnrn[/code]rnrn难道用vector和string 就会超时 ??rn怎么优化
POJ1002 TLE求助!
<em>代码</em>有点长,delHyp()是删除输入串中的‘-’,changeStr()是全部转为‘0’-‘9’之间的字符,转换后之接冒泡排序的,可是一直超时;后来换了qsort()之后还是TLE,实在不知道什么地方效率低,还望高手指点……rnPS:总是很喜欢C++的动态分配,感觉这样空间不会浪费,不知道是不是因为这个耗费了太多时间哦?rn#include rn#include rnusing namespace std;rnrnvoid changeStr(string & a)rnrn int i = 0;rn int len = a.length();rn for (i = 0; i < len; i++)rn rn if (a[i] == 'A' || a[i] == 'B' || a[i] == 'C')rn a[i] = '2';rn else if (a[i] == 'D' || a[i] == 'E' || a[i] == 'F')rn a[i] = '3';rn else if (a[i] == 'G' || a[i] == 'H' || a[i] == 'I')rn a[i] = '4';rn else if (a[i] == 'J' || a[i] == 'K' || a[i] == 'L')rn a[i] = '5';rn else if (a[i] == 'M' || a[i] == 'N' || a[i] == 'O')rn a[i] = '6';rn else if (a[i] == 'P' || a[i] == 'S' || a[i] == 'R')rn a[i] = '7';rn else if (a[i] == 'T' || a[i] == 'U' || a[i] == 'V')rn a[i] = '8';rn else if (a[i] == 'W' || a[i] == 'X' || a[i] == 'Y')rn a[i] = '9';rn rnrnvoid delHyp(string & a)rnrn string::iterator it;rn for (it = a.begin(); it > n;rn string *str = new string[n];rn string *reStr = new string[n];rn int *flagStr = new int[n];rn int i = 0;rn for (i = 0; i < n; i++)rn rn cin >> str[i];rn delHyp(str[i]);rn changeStr(str[i]);rn flagStr[i] = 0;rn rn int j = 0;rn int Gflag = 0;rn for (i = 0; i < n; i++)rn rn if (flagStr[i] == 0)rn rn for (j = i + 1; j < n; j++)rn rn if (str[i] == str[j])rn rn flagStr[i]++;rn flagStr[j] = -1;rn Gflag = 1;rn rn rn rn rn if (Gflag == 0)rn cout << "No duplicates." << endl;rn elsern rn j = 0;rn for(i = 0; i < n; i++)rn rn if (flagStr[i] > 0)rn rn reStr[j] = str[i];rn flagStr[j] = flagStr[i];rn j++;rn rn rn int reStrlen = j;rn string temp;rn int flagTmp;rn for ( i = 0; i < reStrlen; i++)rn rn for (j = i + 1; j < reStrlen; j++)rn if (reStr[i] > reStr[j])rn rn temp = reStr[i];rn reStr[i] = reStr[j];rn reStr[j] = temp;rn flagTmp = flagStr[i];rn flagStr[i] = flagStr[j];rn flagStr[j] = flagTmp;rn rn rn for (i = 0; i < reStrlen; i++)rn rn for (j = 0; j < 3; j++)rn rn cout << reStr[i][j];rn rn cout << '-';rn for (j = 3; j < 7; j++ )rn cout << reStr[i][j];rn cout << ' ' << flagStr[i] + 1 << endl;rn rn rn delete []flagStr;rn delete []reStr;rn delete []str;rn return 0;rnrn
求大鸟解答,这样读取数据为什么有错?
an = new SerialPort();rn tryrn //rnrn tbxRecvData.Text = an.ReadLine() ;rn rn catch (Exception)rn rn lblStatus.Text = "读取串口时发生错误!";rn return;rn rn rn设计了一个串口程序,可以发出数据,但是接受数据就不行,求解?
解答,v_sql 为什么一直是null
create or replace function f_fw_Information(i_BeginDate date,rn i_EndDate date) return number asrn v_sql VARCHAR2(200);rn v_exesql VARCHAR2(200);rn sumc number;rn type o_cursor is ref cursor;rn c1 o_cursor;rnbeginrn sumc := 0;rn v_sql := 'select ''SELECT count(*) FROM '' || t.table_name ||rn '' WHERE LOGDATE >= :i_BeginDate AND LOGDATE < :i_EndDate''rn from sys.user_all_tables trn where t.table_name like ''%T_TEMPLATE%''rn AND T.table_name NOT LIKE ''%APPLY%''rn AND T.table_name NOT LIKE ''%HISTRY%''';rn OPEN c1 for v_sqlrn using i_BeginDate, i_EndDate;rn LOOPrn FETCH c1rn INTO v_exesql;rn execute immediate v_exesql;rn EXIT WHEN c1%NOTFOUND;rn sumc := sumc + sumc;rn END LOOP;rn return sumc;rn CLOSE c1;rnexceptionrn WHEN OTHERS THENrn return 0;rnend f_fw_Information;rn
为什么最后i输出1,求解答
public class TestAn TestA()n System.out.println("P");n this.init();n n void init()n System.out.println("Q");n n public static void main(String[] args)n TestB testb = new TestB();n nnclass TestB extends TestAn int i=1;n TestB()n super();n Ststem.out.println(i+"");n n void init()n System.out.println("C");n this.i=2;n System.out.println(i+"");n n
下载的代码为什么打不开?请高手解答
我从网上下载了一个论坛的源码准备研究一下rnrn但是用VS打开的时候低下的状态拦中显示的是rnrn正在加载项目 HTTP://*************rn这些*不是我的IP地址~然后就提示错误~rn请问怎么把该项目的加载地址改正啊
求两个页面代码一样点击转向。
求两个页面<em>代码</em><em>一样</em>点击转向。rn如a.htmrn和a.htmlrn[color=#FF0000]两个页面<em>代码</em><em>一样</em>[/color]rnrnrn rnrnrnrnrnrn谢谢!
不知道为什么 求大佬解答而命名、
rnc语言 求<em>解答</em> ,答案可以出现 但是会死机。。谢谢了rnrnrnrn输入多个字符串,将其中其中包含“an”的字串的字符串输出。rn#include "stdio.h"rn#define N 3rn#define M 100rnint main(void)rnrn char sz[N][M];//二维字符数组,可以存放10个字符串rn rn for(int i=0;i
解答为什么开发的web网页很卡
开发了一款充值类的管理系统,自己测试用不卡,不过给各各网点的工作人员用总是抱怨卡,这是什么原因?是<em>代码</em>问题还是什么服务器(服务器啥的我完全不懂)的原因?公司小没啥人懂,本人刚刚工作,小白一枚,求高人指点。
询求解答为什么会这样!?
我想大家都有用过netxray 吧!我同时登陆xxx.xxx.184.1和xxx.184.xxx.2的主机时。rn(注:两个主机前面的三个字节均相同)显示的目标MAC地址是一致的,<em>为什么</em>会这样!?我的ip是xxx.xxx.189.139 我使用的是局域网。xxx都是<em>一样</em>的!?rn
为什么行不通呢个求大神解答
[code=javascript]rnvar shopping = document.getElementById("purchases");rnvar items = shopping.document.getElementsByTagName("li");rnalert(items.length);[/code]rnrn<em>为什么</em>不出提示框呢,ul的id名是purchases,rnli包含在这个purchases里边,<em>为什么</em>获取长度没反应呢,怎么行不通呢?
c++sinx函数出错,为什么,求解答
#include rn #include rn using namespace std;rn double s_in(double x)rn int n=2;rn double t=x;rn double s=x;rn dorn t=(-1)*pow(x,2)/((double)(2*n-1)*(double)(2*n-2));rn s=s+t;n++;rnrn while(fabs(t)<>x;rn cout<<<
外中断为什么进不去啊 求解答
ORG 0000HrnLJMP MAINrnORG 0003HrnLJMP INT0rnrnORG 0060HrnrnrnrnMAIN: rn MOV R7,#19H rn MOV R3,#81Hrn SETB EArnSETB EX0 rnSETB IT0rn MOV DPTR,#TAB1rnrnloop: rn MOV A,R3rn ADD A,#0AHrn MOV P0,#01Hrn MOVC A,@A+DPTRrn MOV P2,Arn MOV R4,#4FHrn DJNZ R4,$rn MOV P2,#0FFHrnajmp looprnrnINT0:rnrn TAB1: DB 0C0H,0F9H,0A4H,0B0H,099H,92H,82H,0F8H,80H,90H ;WUDIANrn DB 40H,79H,24H,30H,19H,12H,02H,78H,00H,10H ;YOUDIANrnrnrnrn这个只是试验<em>为什么</em>不工作的 一个小程序 但<em>为什么</em>不进中断 我按了好多次INT0接着的开关 R3始终无变化 rnrnrnrnrn
高分求解答:CreateWaitableTimer 为什么总是未定义?
在VC++ 6.0 中 使用CreateWaitableTimer SetWaitableTimer 编译出现错误:rnrnrnerror C2065: 'CreateWaitableTimer' : undeclared identifierrnerror C2440: '=' : cannot convert from 'int' to 'void *'rnConversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style castrnerror C2065: 'SetWaitableTimer' : undeclared identifierrnrnrn加了#define _WIN32_WINNT 0x0500 #include 还是不行 到底是什么问题啊rnrn应急等着做完了回家过年啊
实在不明白为什么运行不了,求解答
[code=java]package com.cl.wx.test;rnrnimport java.io.IOException;rnimport java.io.InputStream;rnimport java.net.HttpURLConnection;rnimport java.net.MalformedURLException;rnimport java.net.URL;rnimport java.util.HashMap;rnimport java.util.List;rnimport java.util.Map;rnrnimport org.dom4j.Document;rnimport org.dom4j.DocumentException;rnimport org.dom4j.Element;rnimport org.dom4j.io.SAXReader;rnrnpublic class WeatherTest rnrn public static void main(String[] args) rn InputStream is = null;rn try rn URL u = new URL(rn "http://php.weather.sina.com.cn/xml.php?city=上海&password=DJOYnieT8234jlsK&day=1");rn HttpURLConnection uConnection = (HttpURLConnection) urn .openConnection();rn uConnection.connect();rn is = uConnection.getInputStream();rn SAXReader reader = new SAXReader();rn Document document = reader.read(is);rn Element root = document.getRootElement();rn Element weather = root.element("Weather");rn List elementList = weather.elements();rn Map map = new HashMap();rn for (Element e : elementList)rn map.put(e.getName(), e.getText());rnrn System.out.println(map.get("city"));rn System.out.println(map.get("gm_s"));rnrn catch (MalformedURLException e) rn e.printStackTrace();rn catch (IOException e) rn e.printStackTrace();rn catch (DocumentException e) rn e.printStackTrace();rn finally rn try rn if (is != null) rn is.close();rn rn catch (IOException e) rn e.printStackTrace();rn rnrn rnrn rnrnrn[/code]rnrn用的dom4j读取XML,我发给同学,在他那里就可以运行 ,在我电脑上就运行不了rn错误如下:rnException in thread "main" java.lang.NullPointerExceptionrn at com.cl.wx.test.WeatherTest.main(WeatherTest.java:32)
求各位解答为什么不在同行显示
rnrnrn rn 无标题文档rn rn rnrnrnrn rn rn rn rn 设备安装专业职位精选推荐rnrn rnrn rn rn rn 暖通工程师rn 暖通空调工程师 rn 暖通工程师 急 rn 暖通/排水工程师rn 暖通工程师 rn 制冷维修工程师(经理) rn 水暖工程师 暖通设计师 rn 安装工程师rn 暖通工程师 rn 暖通空调工程师rn 暖通工程师rn 太阳能技术部主管 rn 暖通工程师 rn 暖通设计师(华北区域) rn rn rn rn rn 北京 rn 上海 rn 天津 rn 广东 rn 江苏 rn 山东rn 浙江 rn 四川 rn 辽宁 rn 其他 rn rn rn rn rn 客服电话:4006789313 版权所有:筑龙英才咨询服务有限公司 rnrn rnrnrncssrn*rn padding:0;rn margin:0;rn border:0;rnrnrn#box rn height: auto;rn width: 700px;rn margin-top: 0px;rn margin-right: auto;rn margin-bottom: 0px;rn margin-left: auto;rn border: 1px solid #CCCCCC;rnrn#logo rn background-image: url(images/youjian2_01.gif);rn height: 72px;rn rn rnrn#leftrn background-image: url(images/youjian2_02.gif);rn height: 120px;rn float: left;rn width: 370px;rn rn rnrn#rightrn background-image: url(images/youjian2_03.gif);rn float: right;rn height: 120px;rn width: 330px;rn rn rnrn#penrn clear:both;rn height: 137px;rn background-image: url(images/youjian2_04.gif);rn rn rnrnrnrn#banquan rn height: 30px;rnrn#footer rn margin-top: 5px;rn margin-bottom: 5px;rn height: 250px;rnrn.font1 rn font-family: "宋体";rn font-size: 20px;rn color: #FF6600;rn text-align: center;rn font-weight: bold;rnrn.font2 rn font-family: "宋体";rn font-size: 12px;rn color: #000000;rn text-align: center;rn rn#biaoti rn padding-top: 60px;rn font-family: "宋体";rn font-size: 20px;rn text-align: left;rn padding-left: 10px;rnrn#zhiweichaxun rn width: 700px;rn height: 250px;rn border-right-width: 1px;rn border-right-style: solid;rn border-right-color: #CCCCCC;rn margin-top: 10px;rn margin-bottom: 5px;rn background-color: #E7E7E7;rn padding-top: 5px;rn padding-bottom: 5px;rnrn#difang rn width: 350px;rn font-family: "宋体";rn font-size: 12px;rn text-indent: 100px;rn line-height: 18px;rnrn#difang2 rn float: right;rn width: 300px;rn height: 234px;rn font-family: "宋体";rn font-size: 12px;rn line-height: 18px;rn color: #FF6600;rn text-indent: 60px;rn diplay:inine;rnrn#pen img rn margin-top: 40px;rn margin-left: 370px;rnrn.font3 rn color: #000000;rn font-family: "宋体";rn font-size: 20px;rn font-weight: bolder;rnrn<em>为什么</em>DIFANG2的层不能同行显示,FLOAT:RIGHT。不行<em>为什么</em>只能用绝对定位,吗
求一个百度搜索一样的功能代码
RT
代码正确 为什么 不出结果 请解答
assume cs:coderncode segmentrn mov ax,0000hrn mov ds,axrn mov bx,200rn mov cx,63rn rn s:mov ds:[bx],axrn add ax,1hrn inc bxrn loop srn mov ax,4c00hrn int 21hrncode endsrnendrnrnrnrnrn在0000:200~0000:23F中看不到结果 全是0阿?
求高手解答为什么运行结果不对
rnrnrn CSS定位rn rn rnrn < div id="closeLeft">< img src="images/close.gif" alt="alt" />< /div>rn< div id="closeRight">< img src="images/close.gif" alt="alt" />< /div> rn< div id="advLeft">< img src="images/bi-ad.gif" alt="alt" />< /div>rn< div id="advRight">< img src="images/bi-ad.gif" alt="alt" />rnrn
代码解答
Data Source = .\SQLEXPRESS; AttachDbFilename =|DataDirectory|\Database1.mdf; Integrated Security = True; User Instance = true 这是一段与sql数据库连接的<em>代码</em>,能给仔细解释一下吗?
解答!!!!
/**    * Copyright © 2018 eSunny Info. Tech Ltd. All rights reserved. *  * @Package: weibo4j.myweibo  * @author: Dell    * @date: 2018年6月12日 上午10:47:26  */package weibo4j.myweibo;import org.apache.com...
解答。。。
学VB.net是不是先得学会VB?rn还有要做asp.net开发首先要学什么?rn
解答
30、有双向循环链表结点定义为:rnrnstruct nodernrn int data;rnrnstruct node *front,*next;rnrn;rnrn有两个双向循环链表A,B,知道其头指针为:pHeadA,pHeadB,请写一函数将两链表中data值相同的结点删除rnrnBOOL DeteleNode(Node *pHeader, DataType Value)rnrnrnrnif (pHeader == NULL) return;rnrnrnBOOL bRet = FALSE;rnrnNode *pNode = pHead;rnrnwhile (pNode != NULL)rnrnrnrnif (pNode->data == Value)rnrnrnrnif (pNode->front == NULL)rnrnrnrnpHeader = pNode->next;rnrnpHeader->front = NULL;rnrnrnrnelsernrnrnrnif (pNode->next != NULL)rnrnrnrnpNode->next->front = pNode->front;rnrnrnrnpNode->front->next = pNode->next;rnrnrnrnrnNode *pNextNode = pNode->next;rnrndelete pNode;rnrnpNode = pNextNode;rnrnrnbRet = TRUE;rnrn//不要break或return, 删除所有rnrnrnrnelsernrnrnrnpNode = pNode->next;rnrnrnrnrnrnrnreturn bRet;rnrnrnrnrnvoid DE(Node *pHeadA, Node *pHeadB)rnrnrnrnif (pHeadA == NULL || pHeadB == NULL)rnrnrnrnreturn;rnrnrnrnrnNode *pNode = pHeadA;rnrnwhile (pNode != NULL)rnrnrnrnif (DeteleNode(pHeadB, pNode->data))rnrnrnrnif (pNode->front == NULL)rnrnrnrnpHeadA = pNode->next;rnrnpHeadA->front = NULL;rnrnrnrnelsernrnrnrnpNode->front->next = pNode->next;rnrnif (pNode->next != NULL)rnrnrnrnpNode->next->front = pNode->front;rnrnrnrnrnrnNode *pNextNode = pNode->next;rnrndelete pNode;rnrnpNode = pNextNode;rnrnrnrnelsernrnrnrnpNode = pNode->next;rnrnrnrnrnrnrn求高人解析rnrn
SWiSH Max3 真正繁体中文版(part1)下载
09年11月30日的 3.0版本 繁体中文 汉化率有95%以上 打开时的提示窗口有点乱码,其他正常,就一个安装文件,直接安装就是繁体版的了 不用破解什么的。安装后目录96M 。限制问题只能分3卷下载了 相关下载链接:[url=//download.csdn.net/download/rmzcc/2312577?utm_source=bbsseo]//download.csdn.net/download/rmzcc/2312577?utm_source=bbsseo[/url]
Java 同步锁 wait notify 学习心得下载
java多线程下wait和notify的作用 相关下载链接:[url=//download.csdn.net/download/arimood/4208524?utm_source=bbsseo]//download.csdn.net/download/arimood/4208524?utm_source=bbsseo[/url]
MakeZip指定大小文件下载
MakeZip,指定创建一个文件的大小,根据需要自行创建文件大小,单位是M,其余单位自行换算,支持小数输入,即使有时报错依然创建生效。 相关下载链接:[url=//download.csdn.net/download/snail147/4840832?utm_source=bbsseo]//download.csdn.net/download/snail147/4840832?utm_source=bbsseo[/url]
我们是很有底线的