摘要:
C. Ancient Berland Circus time limit per test 2 seconds memory limit per test 64 megabytes input standard input output standard output C. Ancient Berl 阅读全文
摘要:
外接圆半径 ∴ 由海伦公式得 ∴ 内接圆半径 由海伦公式可知, ∴ 解得 pi的求法 const double pi = acos(-1.0); 内接圆半径 由海伦公式可知, ∴ 解得 pi的求法 const double pi = acos(-1.0); 由海伦公式可知, ∴ 解得 pi的求法 c 阅读全文
摘要:
gcd: 整型求法 int gcd(int x,int y) { return b?gcd(b,a%b):a; } 浮点型求法 exgcd(摘自:戳这里): 1 typedef long long LL; 2 3 LL exgcd(LL a,LL b,LL &x,LL &y){ 4 5 if(a== 阅读全文
摘要:
本文转自:http://blog.csdn.net/sjf0115/article/details/8579935 阅读全文
摘要:
B. Spreadsheets time limit per test 10 seconds memory limit per test 64 megabytes input standard input output standard output B. Spreadsheets time lim 阅读全文