This commit is contained in:
Zengtudor 2024-08-21 19:03:07 +08:00
parent 3d109047ee
commit 4ae38aa62f
3 changed files with 42 additions and 0 deletions

3
.gitignore vendored
View File

@ -1,3 +1,6 @@
/build
/.vscode
/.xmake
# ---> C++
# Prerequisites
*.d

35
20240821/P1158/P1158.cpp Normal file
View File

@ -0,0 +1,35 @@
#include <cctype>
#include <cstdio>
#include <iostream>
#include <ostream>
using namespace std;
const int MAX_N = 1e5+5;
struct Dir{
Dir(int x,int y):x(x),y(y){}
int x,y;
friend ostream& operator<<(ostream &os,Dir d){
os<<"Dir { x="<<d.x<<" ,y="<<d.y<<" } ";
return os;
}
};
int readInt();
int main(){
}
int readInt(){
int x=0,w=1;
char ch=0;
while(!isdigit(ch)){
if(ch=='-')w=-1;
ch=getchar();
}
while(isdigit(ch)){
x=x*10+(ch-'0');
ch=getchar();
}
return x*w;
}

4
xmake.lua Normal file
View File

@ -0,0 +1,4 @@
target("P1158")
set_rundir("20240821/P1158")
add_files("20240821/P1158/P1158.cpp")