Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
gzshawnliang committed Oct 28, 2021
1 parent 58b6fb6 commit 82f401d
Show file tree
Hide file tree
Showing 101 changed files with 207 additions and 207 deletions.
2 changes: 1 addition & 1 deletion Lib/assertTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ int main()
{
//code
// C++11 style further ahead
vector<string> a = {"Ann", "Thomas"};
vector<string> a = {"Ann", "Shawn"};
a[1] = "Ann";
// int b;
// //b2=0;
Expand Down
2 changes: 1 addition & 1 deletion myCpps/ACMContestAndBlackout_UVA10600_Thomas.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

using namespace std;

ifstream fin("ACMContestAndBlackout_UVA10600_Thomas.in");
ifstream fin("ACMContestAndBlackout_UVA10600_Shawn.in");
ofstream fout("ACMContestAndBlackout_UVA10600.out");

struct edge
Expand Down
18 changes: 9 additions & 9 deletions myCpps/numberLoopThomas.cpp
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/***********************************************************
* @名称: 3n + 1 problem
* @作者: Shawn
* @创建时间: 2017-11-14 20:38:17
* @修改人: Thomas
* @修改时间: 2017-11-14 21:05:17
* @备注: derp
* @题目来源: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=3&page=show_problem&problem=36
* @����: 3n + 1 problem
* @����: Shawn
* @����ʱ��: 2017-11-14 20:38:17
* @�޸��Shawnhomas
* @�޸�ʱ��: 2017-11-14 21:05:17
* @��ע: derp
* @��Ŀ��Դ�� https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=3&page=show_problem&problem=36
***********************************************************/

#include <fstream>
Expand Down Expand Up @@ -47,8 +47,8 @@ long long numberLoop(long long a, long long b)

int main()
{
ifstream fin("numberLoopThomas.in");
ofstream fout("numberLoopThomas.out");
ifstream fin("numberLoopShawn.in");
ofstream fout("numberLoopShawn.out");

//int minB, maxB, ans = 0, out;
//fin >> minB >> maxB;
Expand Down
36 changes: 18 additions & 18 deletions myCpps/other/!fastcin.1.cpp
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
/***********************************************************
* @名称: 快速cin/cout
* @作者: Thomas
* @创建时间: 2017-11-21 21:51:55
* @修改人: Thomas
* @修改时间: 2017-11-21 21:51:55
* @备注:
* @题目来源:
* @����: ����cin/cout
* @���Shawnomas
* @����ʱ��: 2017-11-21 21:51:55
* @�޸��Shawnhomas
* @�޸�ʱ��: 2017-11-21 21:51:55
* @��ע:
* @��Ŀ��Դ��
* http://www.hankcs.com/program/cpp/cin-tie-with-sync_with_stdio-acceleration-input-and-output.html
* https://heavywatal.github.io/cxx/speed.html
* http://chino.taipei/note-2016-0311C-的輸出入cin-cout和scanf-printf誰比較快?/
* http://chino.taipei/note-2016-0311C-��ݔ����cin-cout��scanf-printf�l���^�죿/
***********************************************************/
#include <fstream>
#include <iostream>
Expand All @@ -17,30 +17,30 @@ using namespace std;

int main()
{
//关闭scanf/printf同步,
//这个函数是一个“是否兼容stdio”的开关,
//C++为了兼容C,保证程序在使用了std::printf
//和std::cout的时候不发生混乱,将输出流绑到了一起。
//�ر�scanf/printfͬ��,
//���������һ�����Ƿ����stdio���Ŀ��أ�
//C++Ϊ�˼���C����֤������ʹ����std::printf
//��std::cout��ʱ�򲻷������ң������������һ��
ios_base::sync_with_stdio(false);

//在默认的情况下cin绑定的是cout,
//每次执行 << 操作符的时候都要调用flush,这样会增加IO负担。
//以下关闭cin/cout同步
//��Ĭ�ϵ������cin�󶨵���cout��
//ÿ��ִ�� << ��������ʱ��Ҫ����flush������������IO������
//���¹ر�cin/coutͬ��
std::cin.tie(NULL);

freopen("bigdata.in2", "r", stdin);
freopen("bigdata.out", "w", stdout);

//数据集超大造成 cin TLE的情况
//���ݼ�������� cin TLE�����
int a = 0;
for(int i = 0; i < (int)1e7; ++i){
cin>>a;
}

//完成一定要执行flush刷新缓存
//���һ��Ҫִ��flushˢ�»���
cout.flush();

//关闭输入输出流定向
//�ر��������������
fclose(stdin);
fclose(stdout);
return 0;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
===========================================================
* @Name: 1010211 Guess the Number
* @Author: Thomas
* @Author: Shawn
* @create Time: 2020/5/16 11:54:33
* @url: https://codeforces.com/gym/101021/problem/1
* @Description:
Expand Down
2 changes: 1 addition & 1 deletion myCpps/other/CF_1043F_MakeItOne/CF_1043F_MakeItOne.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
===========================================================
* @Name: 1043F Make It One
* @Author: Thomas
* @Author: Shawn
* @create Time: 2020/3/8 11:49:59
* @url: https://codeforces.com/contest/1043/problem/F
* @Description: 容斥原理,组合数比较大,Pascal公式超内存,需要逆元计算组合数o
Expand Down
2 changes: 1 addition & 1 deletion myCpps/other/CF_1043F_MakeItOne/CF_1043F_MakeItOneAC2.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
===========================================================
* @Name: 1043F Make It One
* @Author: Thomas
* @Author: Shawn
* @create Time: 2020/3/8 11:49:59
* @url: https://codeforces.com/contest/1043/problem/F
* @Description: 容斥原理,组合数比较大,Pascal公式超内存,需要逆元计算组合数o
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
===========================================================
* @Name: 1076E Vasya and a Tree
* @Author: Thomas
* @Author: Shawn
* @create Time: 2020/3/26 17:15:00
* @url: https://codeforces.com/contest/1076/problem/E
* @Description: 树状数组+DFS
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
===========================================================
* @Name: 1076E Vasya and a Tree
* @Author: Thomas
* @Author: Shawn
* @create Time: 2020/3/26 17:15:00
* @url: https://codeforces.com/contest/1076/problem/E
* @Description:
Expand Down
2 changes: 1 addition & 1 deletion myCpps/other/CF_1139E_MaximizeMex/CF_1139E_MaximizeMex.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
===========================================================
* @Name: 1139E Maximize Mex
* @Author: Thomas
* @Author: Shawn
* @create Time: 2020/5/6 17:23:06
* @url: https://codeforces.com/contest/1139/problem/E
* @Description:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
===========================================================
* @Name: 1367F1 Flying Sort (Easy Version)
* @Author: Thomas
* @Author: Shawn
* @create Time: 2020/6/19 14:20:19
* @url: https://codeforces.com/contest/1367/problem/F1
* @Description:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
===========================================================
* @Name: 1367F1 Flying Sort (Easy Version)
* @Author: Thomas
* @Author: Shawn
* @create Time: 2020/6/19 14:20:19
* @url: https://codeforces.com/contest/1367/problem/F2
* @Description:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
-------------------------------------------------------------------
* @Name: 1368D AND, OR and square sum
* @Author: Thomas
* @Author: Shawn
* @Create Time: 2020/7/3 19:27:48 (UTC+08:00)
* @Url: https://codeforces.com/contest/1368/problem/D
* @Description:
Expand Down
2 changes: 1 addition & 1 deletion myCpps/other/CF_1371D_Grid_00100/CF_1371D_Grid_00100.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
-------------------------------------------------------------------
* @Name: 1371D Grid-00100
* @Author: Thomas
* @Author: Shawn
* @Create Time: 2020/7/2 16:12:18 (UTC+08:00)
* @Url: https://codeforces.com/contest/1371/problem/D
* @Description:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
-------------------------------------------------------------------
* @Name: 1374E2 Reading Books (hard version)
* @Author: Thomas
* @Author: Shawn
* @Create Time: 2020/7/1 17:44:59 (UTC+08:00)
* @Url: https://codeforces.com/contest/1374/problem/E2
* @Description:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
-------------------------------------------------------------------
* @Name: 1375A Sign Flipping
* @Author: Thomas
* @Author: Shawn
* @Create Time: 2020/7/8 18:31:49 (UTC+08:00)
* @Url: https://codeforces.com/contest/1375/problem/A
* @Description:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
-------------------------------------------------------------------
* @Name: 1385E Directing Edges
* @Author: Thomas
* @Author: Shawn
* @Create Time: 2020/7/19 10:12:06 (UTC+08:00)
* @Url: https://codeforces.com/contest/1385/problem/E
* @Description: topo拓扑排序
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
-------------------------------------------------------------------
* @Name: 1385F Removing Leaves
* @Author: Thomas
* @Author: Shawn
* @Create Time: 2020/7/24 13:17:34 (UTC+08:00)
* @Url: https://codeforces.com/contest/1385/problem/F
* @Description:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
-------------------------------------------------------------------
* @Name: 1385G Columns Swaps
* @Author: Thomas
* @Author: Shawn
* @Create Time: 2020/7/20 17:28:13 (UTC+08:00)
* @Url: https://codeforces.com/contest/1385/problem/G
* @Description:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/*
-------------------------------------------------------------
* @名称: 169B Replacing Digits
* @作者: Thomas
* @作者: Shawn
* @创建时间: 2019-11-07 12:02:26
* @修改人: Thomas
* @修改人: Shawn
* @修改时间: 2019-11-07 12:02:26
* @备注: 双指针,贪心
* @题目来源: https://codeforces.com/problemset/problem/169/B
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/*
===========================================================
* @名称: 182D Common Divisors
* @作者: Thomas
* @作者: Shawn
* @创建时间: 2019-11-08 16:28:30
* @修改人: Thomas
* @修改人: Shawn
* @修改时间: 2019-11-08 16:28:30
* @备注: 字符串的前i项是Divisor
* @题目来源: https://codeforces.com/problemset/problem/182/D
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
===========================================================
* @Name: 451E Devu and Flowers
* @Author: Thomas
* @Author: Shawn
* @create Time: 2020/3/12 21:07:16
* @url: https://codeforces.com/contest/451/problem/E
* @Description:
Expand Down
4 changes: 2 additions & 2 deletions myCpps/other/CF_488D_Strip/CF_488D_Strip.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/*
===========================================================
* @名称: Strip
* @作者: Thomas
* @作者: Shawn
* @创建时间: 2020-02-12 20:54:33
* @修改人: Thomas
* @修改人: Shawn
* @修改时间: 2020-02-12 20:54:33
* @备注: Sparse Table + Sliding Window(双指针) + DP
* @题目来源: https://codeforces.com/problemset/problem/488/D
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
===========================================================
* @Name: 514D R2D2 and Droid Army
* @Author: Thomas
* @Author: Shawn
* @create Time: 2020/2/21 9:42:21
* @url: https://codeforces.com/contest/514/problem/D
* @Description: SparseTable + 暴力超时
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
===========================================================
* @Name: 514D R2D2 and Droid Army
* @Author: Thomas
* @Author: Shawn
* @create Time: 2020/2/21 9:42:21
* @url: https://codeforces.com/contest/514/problem/D
* @Description: SparseTable + 二分 AC
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
===========================================================
* @Name: 690D2 The Wall (medium)
* @Author: Thomas
* @Author: Shawn
* @create Time: 2020/3/10 21:32:56
* @url: https://codeforces.com/contest/690/problem/D2
* @Description:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
===========================================================
* @Name: 803F Coprime Subsequences
* @Author: Thomas
* @Author: Shawn
* @create Time: 2020/3/2 20:13:32
* @url: https://codeforces.com/contest/803/problem/F
* @Description:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
===========================================================
* @Name: 803F Coprime Subsequences
* @Author: Thomas
* @Author: Shawn
* @create Time: 2020/3/2 20:13:32
* @url: https://codeforces.com/contest/803/problem/F
* @Description:
Expand Down
2 changes: 1 addition & 1 deletion myCpps/other/CF_839D_Winterishere/CF_839D_Winterishere.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
===========================================================
* @Name: 839D Winter is here
* @Author: Thomas
* @Author: Shawn
* @create Time: 2020/2/29 21:18:28
* @url: https://codeforces.com/contest/839/problem/D
* @Description:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
===========================================================
* @Name: 839D Winter is here
* @Author: Thomas
* @Author: Shawn
* @create Time: 2020/2/29 21:18:28
* @url: https://codeforces.com/contest/839/problem/D
* @Description:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
===========================================================
* @Name: 900D Unusual Sequences
* @Author: Thomas
* @Author: Shawn
* @create Time: 2020/3/6 16:44:56
* @url: https://codeforces.com/contest/900/problem/D
* @Description:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
===========================================================
* @Name: 900D Unusual Sequences
* @Author: Thomas
* @Author: Shawn
* @create Time: 2020/3/6 16:44:56
* @url: https://codeforces.com/contest/900/problem/D
* @Description:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
-------------------------------------------------------------------
* @Name: Problem B: Class Treasurer
* @Author: Thomas
* @Author: Shawn
* @Create Time: 2020/8/11 21:44:33 (UTC+08:00)
* @Url: https://www.facebook.com/codingcompetitions/hacker-cup/2019/round-1/problems/B
* @Description: Facebook Hacker Cup 2019 Round 1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
-------------------------------------------------------------------
* @Name: Problem B: Class Treasurer
* @Author: Thomas
* @Author: Shawn
* @Create Time: 2020/8/11 21:44:33 (UTC+08:00)
* @Url: https://www.facebook.com/codingcompetitions/hacker-cup/2019/round-1/problems/B
* @Description: Facebook Hacker Cup 2019 Round 1
Expand Down
Loading

0 comments on commit 82f401d

Please sign in to comment.