#include<iostream>
using namespace std;
int main(){
cout<<"hello world";
return 0;
}
阅读全部
|
maomao12345
贴于 2020年3月24日 09:50
hide
bbsi
#include<iostream>
using namespace std;
int n,m,k,xt,yt,xs,ys,xe,ye;
int ans=0;
char a[100][100];
int dirx[4]={-1,1,0,0};
int diry[4]={0,0,1,-1};
bool vis[100][100]={false};
void dfs(int x,int y){
if(x==xe&&y==ye){
ans++;
return;
......................
阅读全部
|
return_0
贴于 2020年3月19日 21:21
hide
bbsi
#include<iostream>
using namespace std;
int n,m,k,xt,yt,xs,ys,xe,ye;
int ans=0;
char a[100][100];
int dirx[4]={-1,1,0,0};
int diry[4]={0,0,1,-1};
bool vis[100][100]={false};
void dfs(int x,int y){
if(x==xe&&y==ye){
ans++;
return;
......................
阅读全部
|
return_0
贴于 2020年3月19日 21:04
hide
bbsi
/*
Name: games.h
Copyright:
Author: Tc_xk
Date: 16-02-20 14:51
Description: for dev-c++:NOT offical headfile for game making
*/
#include <iostream>
#include <string>
#include<Windows.h>
#include<cstdlib>
#include<ctime>
......................
阅读全部
|
return_0
贴于 2020年2月27日 11:26
hide
bbsi
#include <stdio.h>
#include <iostream>
#include <math.h>
float f(float x, float y, float z) {
float a = x * x + 9.0f / 4.0f * y * y + z * z - 1;
return a * a * a - x * x * z * z * z - 9.0f / 80.0f * y * y * z * z * z;
}
float h(float x, float z) {
for (float y = 1.0f; y >= 0.0f; y -= 0.001f)
if (f(x, y, z) <= 0.0f) {
......................
阅读全部
|
zkphello
贴于 2020年2月17日 11:24
hide
bbsi
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <stdint.h>
#include <limits.h>
#include <float.h>
#define _CRT_SECURE_NO_WARNINGS
#define LN10 2.302585092994045684018
#define RLN10 0.43429448190325182765
#define MAX_LEN 128
......................
阅读全部
|
liangbch
贴于 2019年12月25日 09:07
hide
bbsi
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <assert.h>
#define MAX_Q 1000000000
// 返回最大下标
int calc_cfrac(double x, int a[], int p[], int q[], int max_idx)
{
double ipart;
int i;
......................
阅读全部
|
liangbch
贴于 2019年12月21日 20:28
hide
bbsi
#include <stdio.h>
#include <stdlib.h>
#include <float.h>
#include <stdint.h>
#include <math.h>
#include <mpfr.h>
#include <mpreal.h>
#include <time.h>
#include <inttypes.h>
#define LG2 0.30102999566398119521
#define RLN2 1.44269504088896340735
......................
阅读全部
|
liangbch
贴于 2019年12月18日 09:02
hide
bbsi
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
typedef union
{
double f;
uint32_t i[2];
}Packet;
#define M ((1<<20)-1)
void test( double f)
......................
阅读全部
|
liangbch
贴于 2019年12月16日 10:15
hide
bbsi
#include<iostream>
using namespace std;
func(int a, int b)
{
static int m, i = 2;
i += m + 1;
m = i + a + b;
return(m);
}
int main()
{
int k = 4, m = 1, p;
......................
阅读全部
|
莫说
贴于 2019年11月16日 19:02
hide
bbsi