git clone https://github.com/spack/spack.git
export SPACK_ROOT=/path/to/spack
export PATH=${SPACK_ROOT}/bin:${PATH}
source ${SPACK_ROOT}/share/spack/setup-env.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 思路: | |
* 1. 左边的右括号不能超过当前位置的一半长度 | |
* 2. 右边的左括号不能超过当前位置的一半长度 | |
*/ | |
#define _USE_MATH_DEFINES | |
#ifdef ONLINE_JUDGE | |
#define FINPUT(file) 0 | |
#define FOUTPUT(file) 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream>; | |
#include <string>; | |
#include <chrono>; | |
#include <thread>; | |
#include <cstdlib>; | |
const int width = 158; // Width of terminal window | |
const int flipsPerLine = 5; // No. of columns changed per line | |
const int millisecondsOfSleep = 50; // Delay between lines in millisecond | |
int main() | |
{ |
NewerOlder