chore: initial commit
This commit is contained in:
commit
1d8c4546a6
29 changed files with 313 additions and 0 deletions
1
cpp/.gitignore
vendored
Normal file
1
cpp/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
a
|
12
cpp/a.cpp
Normal file
12
cpp/a.cpp
Normal file
|
@ -0,0 +1,12 @@
|
|||
#include <iostream>
|
||||
|
||||
#pragma GCC optimize("O3")
|
||||
#pragma GCC optimize("Ofast")
|
||||
#pragma GCC optimization("unroll-loops")
|
||||
|
||||
using namespace std;
|
||||
|
||||
int main()
|
||||
{
|
||||
cout << "Hello, C++!\n";
|
||||
}
|
8
cpp/cpp.justfile
Normal file
8
cpp/cpp.justfile
Normal file
|
@ -0,0 +1,8 @@
|
|||
@build-cpp:
|
||||
g++ ./cpp/a.cpp -o ./cpp/a
|
||||
|
||||
@run-cpp: build-cpp
|
||||
./cpp/a < ./input.txt
|
||||
|
||||
@bench-cpp: build-cpp
|
||||
hyperfine './cpp/a < ./input.txt'
|
Loading…
Add table
Add a link
Reference in a new issue