#include<iostream>
#include<cstdlib>
using namespace std;
int getint(int a,int b){
if(a==0)return b;
if(b==0)return a;
cout<<a<<endl;
return getint(a-1,b-1);
}
int ungetint(int a){
if(a<=0)return 0;
......................
阅读全部
|
MC189
贴于 2018年10月21日 16:41
hide
bbsi
public class Yuman{
public static void mian(String[] args){
int x=5,y=10;
if (x<y);
{
System.out.println("正确");
}
else;
{
Sytem.out.println("错误");
}
......................
阅读全部
|
yuyiman330
贴于 2018年10月17日 17:36
hide
bbsi
输入十个整数,求最值,并将最小值放在第一个位置,最大值放在最后一个位置
#include <stdio.h>
void main()
{
int i;
int s[10];
int max=0,min=s[9];
for(i=0;i<10;i++){
scanf("%d/n",&s[i]);
}
for(i=0;i<10;i++){
if(s[i]>=max)
......................
阅读全部
|
玖零
贴于 2018年10月13日 00:00
hide
bbsi
#include<iostream>
#include<cstdio>
#include<algorithm>
using namespace std;
int n,opt,root,ans,xx,size;
struct treep{int lc,rc,key,pri,cnt,sze;}t[100005];
void update(int k){t[k].sze=t[t[k].lc].sze+t[t[k].rc].sze+t[k].cnt;}
void yx(int &k){
int tt=t[k].lc; t[k].lc=t[k].rc;t[tt].rc=k;t[tt].sze=t[k].sze; update(k); k=tt;}
void zx(int &k){
int tt=t[k].rc; t[k].rc=t[k].lc;t[tt].lc=k;t[tt].sze=t[k].sze; update(k); k=tt;}
void cr(int &k,int x){
......................
阅读全部
|
精神患者
贴于 2018年10月12日 20:45
hide
bbsi
$ ./test
“Press ctrl+D exit”
–n “Input your favoriate film:”
aaaa
“yes, aaaa is a good movie!”
–n “Input your favoriate film:”
bbbb
“yes, bbbb is a good movie!”
–n “Input your favoriate film:”
cccc
“yes, cccc is a good movie!”
–n “Input your favoriate film:”
......................
阅读全部
|
mimijilu
贴于 2018年10月12日 15:44
hide
bbsi
#include<stdio.h>
#include<windows.h>
#include<stdlib.h>
#include<time.h>
#include<conio.h>
#include<math.h>
#include<algorithm>
#define KEY_DOWN(VK_NONAME) ((GetAsyncKeyState(VK_NONAME) & 0x8000) ? 1:0)
void sxy(int x,int y);
void rand_start(int n);
int ate();
int rbh(int s,int e);
......................
阅读全部
|
拉拉面
贴于 2018年10月6日 22:17
hide
bbsi
//malloc.h
/***
*malloc.h - declarations and definitions for memory allocation functions
*
* Copyright (c) Microsoft Corporation. All rights reserved.
*
*Purpose:
* Contains the function declarations for memory allocation functions;
* also defines manifest constants and types used by the heap routines.
* [System V]
*
* [Public]
......................
阅读全部
|
cstdio
贴于 2018年10月5日 15:10
hide
bbsi
6EBFCC30 pop esi
6EBFCC31 pop ebp
6EBFCC32 ret
6EBFCC33 mov edi,edi
6EBFCC35 push ebp
6EBFCC36 mov ebp,esp
6EBFCC38 mov ecx,dword ptr [ebp+8]
6EBFCC3B mov eax,ecx
6EBFCC3D shl eax,8
6EBFCC40 shr cx,8
6EBFCC44 add ax,cx
6EBFCC47 pop ebp
......................
阅读全部
|
MC189
贴于 2018年10月4日 14:10
hide
bbsi
#include<iostream>
using namespace std;
int main()
{
char letter1,letter2;
int a,b;
cout<<"Please enter the 1st letter:"<<endl;
cout<<"Please enter the 2nd letter:"<<endl;
cin>>letter1>>letter2;
......................
阅读全部
|
yssjtu
贴于 2018年10月3日 11:18
hide
bbsi