🔥 删除 #include "sylib.h" ,删除 sylib.h

This commit is contained in:
wangfiox 2024-05-19 17:04:50 +08:00
parent 875693f977
commit f14b8f0808
177 changed files with 90 additions and 332 deletions

View File

@ -1,4 +1,3 @@
#include "sylib.h"
#define N 1024
void mm(int n, int A[][N], int B[][N], int C[][N])

View File

@ -1,4 +1,3 @@
#include "sylib.h"
#define N 1024
void mm(int n, int A[][N], int B[][N], int C[][N])

View File

@ -1,4 +1,3 @@
#include "sylib.h"
#define N 1024
void mm(int n, int A[][N], int B[][N], int C[][N])

View File

@ -1,4 +1,3 @@
#include "sylib.h"
#define base 16
int getMaxNum(int n, int arr[]){

View File

@ -1,4 +1,3 @@
#include "sylib.h"
#define base 16
int getMaxNum(int n, int arr[]){

View File

@ -1,4 +1,3 @@
#include "sylib.h"
#define base 16
int getMaxNum(int n, int arr[])

View File

@ -1,4 +1,3 @@
#include "sylib.h"
void spmv(int n,int xptr[], int yidx[], int vals[], int b[], int x[]){
int i, j, k;
i = 0;

View File

@ -1,4 +1,3 @@
#include "sylib.h"
void spmv(int n,int xptr[], int yidx[], int vals[], int b[], int x[]){
int i, j, k;
i = 0;

View File

@ -1,4 +1,3 @@
#include "sylib.h"
void spmv(int n,int xptr[], int yidx[], int vals[], int b[], int x[]){
int i, j, k;
i = 0;

View File

@ -1,4 +1,3 @@
#include "sylib.h"
#define mod 998244353
int d;

View File

@ -1,4 +1,3 @@
#include "sylib.h"
#define mod 998244353
int d;

View File

@ -1,4 +1,3 @@
#include "sylib.h"
#define mod 998244353
int d;

View File

@ -1,4 +1,3 @@
#include "sylib.h"
int sheet1[500][500] = {};
int sheet2[500][500] = {};
int active = 1;

View File

@ -1,4 +1,3 @@
#include "sylib.h"
int sheet1[500][500] = {};
int sheet2[500][500] = {};
int active = 1;

View File

@ -1,4 +1,3 @@
#include "sylib.h"
int sheet1[500][500] = {};
int sheet2[500][500] = {};
int active = 1;

View File

@ -1,4 +1,3 @@
#include "sylib.h"
int func(int n) {
int sum = 0;
int i = 200;

View File

@ -1,4 +1,3 @@
#include "sylib.h"
int func(int n)
{
int sum = 0;

View File

@ -1,4 +1,3 @@
#include "sylib.h"
int func(int n) {
int sum = 0;
int i = 200;

View File

@ -1,4 +1,3 @@
#include "sylib.h"
//large loop and large array caculate
int COUNT = 500000;

View File

@ -1,4 +1,3 @@
#include "sylib.h"
int COUNT = 500000;
float loop(float x[], float y[], int length) {

View File

@ -1,4 +1,3 @@
#include "sylib.h"
int COUNT = 100000;
float loop(float x[], float y[], int length) {

View File

@ -1,4 +1,3 @@
#include "sylib.h"
int a[1000][1000];
int b[1000][1000];
int c[1000][1000];

View File

@ -1,4 +1,3 @@
#include "sylib.h"
int a[1000][1000];
int b[1000][1000];
int c[1000][1000];

View File

@ -1,4 +1,3 @@
#include "sylib.h"
int a[1000][1000];
int b[1000][1000];
int c[1000][1000];

View File

@ -1,4 +1,3 @@
#include "sylib.h"
float myabs(float num)
{
if (num > 0) {

View File

@ -1,4 +1,3 @@
#include "sylib.h"
float myabs(float num) {
if(num>0){
return num;

View File

@ -1,4 +1,3 @@
#include "sylib.h"
float myabs(float num) {
if(num>0){
return num;

View File

@ -1,4 +1,3 @@
#include "sylib.h"
int hashmod;
#define maxn 10000000

View File

@ -1,4 +1,3 @@
#include "sylib.h"
int hashmod;
#define maxn 10000000

View File

@ -1,4 +1,3 @@
#include "sylib.h"
int hashmod;
#define maxn 10000000

View File

@ -1,4 +1,3 @@
#include "sylib.h"
int x[600][600][600];
int y[600][600][600];

View File

@ -1,4 +1,3 @@
#include "sylib.h"
int x[600][600][600];
int y[600][600][600];

View File

@ -1,4 +1,3 @@
#include "sylib.h"
int x[600][600][600];
int y[600][600][600];

View File

@ -1,31 +0,0 @@
#ifndef __SYLIB_H_
#define __SYLIB_H_
#include <stdarg.h>
#include <stdio.h>
#include <sys/time.h>
/* Input & output functions */
int getint(), getch(), getarray(int a[]);
float getfloat();
int getfarray(float a[]);
void putint(int a), putch(int a), putarray(int n, int a[]);
void putfloat(float a);
void putfarray(int n, float a[]);
void putf(char a[], ...);
/* Timing function implementation */
struct timeval _sysy_start, _sysy_end;
#define starttime() _sysy_starttime(__LINE__)
#define stoptime() _sysy_stoptime(__LINE__)
#define _SYSY_N 1024
int _sysy_l1[_SYSY_N], _sysy_l2[_SYSY_N];
int _sysy_h[_SYSY_N], _sysy_m[_SYSY_N], _sysy_s[_SYSY_N], _sysy_us[_SYSY_N];
int _sysy_idx;
__attribute((constructor)) void before_main();
__attribute((destructor)) void after_main();
void _sysy_starttime(int lineno);
void _sysy_stoptime(int lineno);
#endif

View File

@ -1,4 +1,3 @@
#include "sylib.h"
int matrix[20000000];
int a[100000];

View File

@ -1,4 +1,3 @@
#include "sylib.h"
int matrix[20000000];
int a[100000];

View File

@ -1,4 +1,3 @@
#include "sylib.h"
int matrix[20000000];
int a[100000];

View File

@ -1,4 +1,3 @@
#include "sylib.h"
int main(){
return 3;
}

View File

@ -1,4 +1,3 @@
#include "sylib.h"
//test domain of global var define and local define
int a = 3;
int b = 5;

View File

@ -1,4 +1,3 @@
#include "sylib.h"
//test local var define
int main(){
int a, b0, _c;

View File

@ -1,4 +1,3 @@
#include "sylib.h"
int a[10][10];
int main(){
return 0;

View File

@ -1,4 +1,3 @@
#include "sylib.h"
//test array define
int main(){
int a[4][2] = {};

View File

@ -1,4 +1,3 @@
#include "sylib.h"
int main(){
const int a[4][2] = {{1, 2}, {3, 4}, {}, 7};
#define N 3

View File

@ -1,4 +1,3 @@
#include "sylib.h"
// test const gloal var define
const int a = 10, b = 5;

View File

@ -1,4 +1,3 @@
#include "sylib.h"
//test const local var define
int main(){
const int a = 10, b = 5;

View File

@ -1,4 +1,3 @@
#include "sylib.h"
const int a[5]={0,1,2,3,4};
int main(){

View File

@ -1,4 +1,3 @@
#include "sylib.h"
int a;
int func(int p){
p = p - 1;

View File

@ -1,4 +1,3 @@
#include "sylib.h"
int defn(){
return 4;
}

View File

@ -1,4 +1,3 @@
#include "sylib.h"
//test add
int main(){
int a, b;

View File

@ -1,4 +1,3 @@
#include "sylib.h"
//test addc
#define a 10
int main(){

View File

@ -1,4 +1,3 @@
#include "sylib.h"
//test sub
#define a 10
int main(){

View File

@ -1,4 +1,3 @@
#include "sylib.h"
//test subc
int main(){
int a;

View File

@ -1,4 +1,3 @@
#include "sylib.h"
//test mul
int main(){
int a, b;

View File

@ -1,4 +1,3 @@
#include "sylib.h"
//test mulc
#define a 5
int main(){

View File

@ -1,4 +1,3 @@
#include "sylib.h"
//test div
int main(){
int a, b;

View File

@ -1,4 +1,3 @@
#include "sylib.h"
//test divc
#define a 10
int main(){

View File

@ -1,4 +1,3 @@
#include "sylib.h"
//test mod
int main(){
int a;

View File

@ -1,4 +1,3 @@
#include "sylib.h"
//test rem
int main(){
int a;

View File

@ -1,4 +1,3 @@
#include "sylib.h"
// test if-else-if
int ifElseIf() {
int a;

View File

@ -1,4 +1,3 @@
#include "sylib.h"
// test if-if-else
int ififElse() {
int a;

View File

@ -1,4 +1,3 @@
#include "sylib.h"
// test if-{if-else}
int if_ifElse_() {
int a;

View File

@ -1,4 +1,3 @@
#include "sylib.h"
// test if-{if}-else
int if_if_Else() {
int a;

View File

@ -1,4 +1,3 @@
#include "sylib.h"
int get_one(int a) {
return 1;
}

View File

@ -1,4 +1,3 @@
#include "sylib.h"
int doubleWhile() {
int i;
i = 5;

View File

@ -1,4 +1,3 @@
#include "sylib.h"
int FourWhile() {
int a;
a = 5;

View File

@ -1,4 +1,3 @@
#include "sylib.h"
int g;
int h;
int f;

View File

@ -1,4 +1,3 @@
#include "sylib.h"
//test break
int main(){
int i;

View File

@ -1,4 +1,3 @@
#include "sylib.h"
//test continue
int main(){
int i;

View File

@ -1,4 +1,3 @@
#include "sylib.h"
// test while-if
int whileIf() {
int a;

View File

@ -1,4 +1,3 @@
#include "sylib.h"
int ifWhile() {
int a;
a = 0;

View File

@ -1,4 +1,3 @@
#include "sylib.h"
int deepWhileBr(int a, int b) {
int c;
c = a + b;

View File

@ -1,4 +1,3 @@
#include "sylib.h"
#define N -1

View File

@ -1,4 +1,3 @@
#include "sylib.h"
//test the priority of add and mul
int main(){
int a, b, c, d;

View File

@ -1,4 +1,3 @@
#include "sylib.h"
//test the priority of add and mul
int main(){
int a, b, c, d;

View File

@ -1,4 +1,3 @@
#include "sylib.h"
//test the priority of unary operator and binary operator
int main(){
int a, b;

View File

@ -1,4 +1,3 @@
#include "sylib.h"
int a;
int b;
int c;

View File

@ -1,4 +1,3 @@
#include "sylib.h"
int a = 1;
int b = 0;
int c = 1;

View File

@ -1,4 +1,3 @@
#include "sylib.h"
int main() {
int a;
a = 10;

View File

@ -1,4 +1,3 @@
#include "sylib.h"
int main() {
int a, b;
a = 070;

View File

@ -1,4 +1,3 @@
#include "sylib.h"
int main() {
int a = 10;
;

View File

@ -1,4 +1,3 @@
#include "sylib.h"
int a;
int b;
int main()

View File

@ -1,4 +1,3 @@
#include "sylib.h"
int k;
#define n 10
int main () {

View File

@ -1,4 +1,3 @@
#include "sylib.h"
//test comment
int main(){
int a;

View File

@ -1,4 +1,3 @@
#include "sylib.h"
// test hexadecimal define
int main(){
int a;

View File

@ -1,4 +1,3 @@
#include "sylib.h"
//test add of hex and oct
int main(){
int a, b;

View File

@ -1,4 +1,3 @@
#include "sylib.h"
// Use complex expression in assign structure
int main () {
int a;

View File

@ -1,4 +1,3 @@
#include "sylib.h"
// Use complex expression in if structure
int main () {
int a;

View File

@ -1,4 +1,3 @@
#include "sylib.h"
int g = 0;
int func(int n) {

View File

@ -1,4 +1,3 @@
#include "sylib.h"
int a, b, d;
int set_a(int val) { a = val; return a; }

View File

@ -1,4 +1,3 @@
#include "sylib.h"
int a = 7;
int func() {

View File

@ -1,4 +1,3 @@
#include "sylib.h"
int k;
int main() {

View File

@ -1,4 +1,3 @@
#include "sylib.h"
int b = 5;
int c[4] = {6, 7, 8, 9};

View File

@ -1,4 +1,3 @@
#include "sylib.h"
int n;
int bubblesort(int arr[])
{

View File

@ -1,4 +1,3 @@
#include "sylib.h"
int n;
int insertsort(int a[])
{

View File

@ -1,4 +1,3 @@
#include "sylib.h"
int n;
int QuickSort(int arr[], int low, int high)
{

View File

@ -1,4 +1,3 @@
#include "sylib.h"
int n;
int select_sort(int A[],int n)
{

View File

@ -1,4 +1,3 @@
#include "sylib.h"
int n;
int swap (int array[], int i, int j){
int temp;

View File

@ -1,4 +1,3 @@
#include "sylib.h"
int n;
int counting_sort(int ini_arr[], int sorted_arr[], int n) {

View File

@ -1,4 +1,3 @@
#include "sylib.h"
int buf[2][100];
// sort [l, r)

View File

@ -1,4 +1,3 @@
#include "sylib.h"
int array[110];
int n;
void init(int n) {

Some files were not shown because too many files have changed in this diff Show More