这名用户暂未设置签名。
追踪最近的用户名外显变动记录。
最近的文章、讨论、云剪贴板与社区记录
在讨论《90分求助,#9TLE》回复:
@[do_while_true](/user/223298) 懂了,多谢
在讨论《90分求助,#9TLE》回复:
@[do_while_true](/user/223298) 虚拟节点是怎么弄?
```cpp #include #include #include #include #include #include using namespace std; unordered_set G[1001]; int grade[1001], indegree[1001]; int n, m; void build_g…
```cpp #include #include #include #include #include #include using namespace std; int nums[100000]; int N; void quick_sort(int left, int right) { if (left >= ri…
```cpp #include #include #include #include using namespace std; complex A[16]; int n; bool vis[16]; double ans = INFINITY; void DFS(int x, double s, int cnt) {…
```cpp #include #include #include #include using namespace std; struct edge { int to, len; }; vector G[1501]; int n, m; long long record[1501]; long long DFS(in…
在讨论《60分求助,4个TLE》回复:
@[Jasonying](/user/290524) 看了第二篇题解,把输入改成快读就过了
在讨论《60分求助,4个TLE》回复:
@[Jasonying](/user/290524) unordered_set已经是哈希的啊
```cpp #include #include using namespace std; int main() { ios::sync_with_stdio(false); int T; cin >> T; while (T--) { int n, a; unordered_set S; cin >> n; whil…
```cpp #include #include #include #include #include using namespace std; struct Point { int x, y; bool operator transit; map tmp; queue Q; bool used[256]; int m…
```cpp #include #include #include #include #include #include #include using namespace std; struct Role; enum Card {P, K, D, F, N, W, J, Z}; enum Status {MP, ZP,…
原本把奇数个点排除就WA了四个,注释掉就AC ```cpp #include #include #include using namespace std; struct Point { int x, y; }; Point S[20000]; int main() { int N; cin >> N; */ if (N…
```cpp #include #include using namespace std; int data[13][2], times[13]; int cur_score[11], total_score[11]; int main() { int c, i = 1, j = 0; while ((c = getc…
```cpp #include #include using namespace std; bool flag; int read_and_compute() { bool cards[4][14] = {}; enum {S, H, D, C}; int n; cin >> n; flag = flag || n;…
```cpp #include #include using namespace std; inline double T(double h) { return sqrt(2 * h / 10); } int main() { double H, S1, V, L, K; int n; cin >> H >> S1 >…
因为只需保留三位小数,像-0.0001也该输出0.000,此外浮点数本身也有误差 不知为什么我用==就WA了(之前也能AC) ```cpp #include #include #include using namespace std; int main() { char buf[100]; gets(buf); int…
在讨论《为什么用unordered_multiset会TLE?》回复:
@[樱巫女Official](/user/361549) 哦哦,我还以为是常数时间
```cpp #include #include using namespace std; unordered_multiset S; inline int C2(int x) { return x * (x - 1) / 2; } int main() { cin.sync_with_stdio(false); in…
```cpp #include #include using namespace std; using T = pair ; priority_queue , greater > Q; int main() { cin.sync_with_stdio(false), cout.sync_with_stdio(false…
在讨论《90分求助,#10WA》回复:
@[天南地北](/user/51800) ok,把别的问题一起改后过了
在讨论《90分求助,#10WA》回复:
@[天南地北](/user/51800) 不行
在讨论《90分求助,#10WA》回复:
@[天南地北](/user/51800) 改了还是不行
```cpp #include #include #include #include #include using namespace std; struct vertex { vector > adj; int dis; int id; bool known; }; vertex G[10001]; auto cmp…
```cpp #include #include #include using namespace std; string A[20]; int cnt[20]; int ans, n; void DFS(const string & a, int prev) { int len = a.size(), total =…
```cpp #include #include #include #include using namespace std; int p1, p2, p3; string s; string expand(char a, char b) { string str; if (isdigit(a) && isdigit(…
在讨论《样例得到3.0求助》回复:
知道问题了,T应该改成double
```cpp #include #include using namespace std; int S, a, n; bool test(double p) { int T = S; for (int i = 1; i > S >> a >> n; double left = 0, right = 3; while (…
在讨论《80分求助,#4WA》回复:
@[ASTROBOY](/user/290258) 改了也不行