这名用户暂未设置签名。
追踪最近的用户名外显变动记录。
最近的文章、讨论、云剪贴板与社区记录
注意啊,题上没说$X \le Y$,所以如果$Y<X$要对他俩交换,或者直接对他两个取最小最大,可以用STL的swep max min
在讨论《【加急】40分求条》回复:
我过了 ```cpp #include using namespace std; int main() { int n; cin >> n; vector a(n + 1); for (int i = 1; i > a[i]; } int ans = 1, now = 1; for (int i = 1; i <= n…
```cpp #include using namespace std; int main() { int n; cin >> n; vector a(n + 1); for (int i = 1; i > a[i]; } int ans = 1, now = 1; for (int i = 1; i <= n; i+…
```cpp #include using namespace std; int main() { int n; cin >> n; int l = 0, r = n; int ans = 999; while (l =n){ r = mid - 1; ans = mid; } else { l = mid + 1;…
```cpp #include using namespace std; int main() { int n; cin >> n; vector a(n + 1); for (int i = 1; i > a[i]; int ans = 0; int l = 0, r = 0; bool flag = false;…
```cpp #include using namespace std; vector nums(1000001);//稍微开的大一点 int main() { int n, m; cin >> n >> m; for (int i = 1; i > nums[i]; } int maxn = INT_MIN; for…
在讨论《洛谷 2025 年鉴》回复:
qp
在讨论《进食后人》回复:
@[Yxy008](luogu://user/1582494)哈哈
```cpp #include using namespace std; int student[10005][10005]; struct song{ int h,id; }songs[105]; bool cmp(song x,song y){ return x.h>y.h; } int main() { int…
在讨论《救命!有语法错误,加急!!!》回复:
谢谢!
在讨论《救命!有语法错误,加急!!!》回复:
@[x11223344](luogu://user/1393897)对对对,写a写习惯了,哈哈哈
```cpp #include using namespace std; int student[1005][1005]; struct song{ int h,id; }songs[105]; bool cmp(song x,song y){ return x.h>y.h; } int main() { int n,…
在讨论《两个题RE了,加急,帮帮我!》回复:
过了,谢谢,已关注
```cpp #include using namespace std; vector a; vector b(10000001,0); int main() { int n,maxn=-999,ans=0,cnt=0; cin>>n; for(int i=0;i >t; a.push_back(t); maxn=ma…
在讨论《蒟蒻求解 加急》回复:
已通过,无需帮助
```cpp #include using namespace std; int main() { long long n, cnt = 0; bool flag = false; cin >> n; for (long long i = 2; i * i 1) { cout << i << "^" << cnt; }…
在讨论《55分,剩下的都WA,求调 加急》回复:
我过了,中间手误打错变量了
```cpp #include using namespace std; int v[1100005]; int main() { memset(v, 0, sizeof(v)); int a, n, x; cin >> a >> n; x = sqrt(a); if (x * x != n) x++; for (in…
在讨论《TLE求条,80分》回复:
我去看题解
在讨论《TLE求条,80分》回复:
谢谢
代码如下 ```cpp // TLE #include using namespace std; int main() { int n, m; int a, b; cin >> n >> m; cin >> a >> b; if (n > m and a b) swap(a, b); int ans = 0; whil…
在讨论《求条!!加急》回复:
@[William_Y1](luogu://user/1822054)忘清零了
在讨论《求条!!加急》回复:
谢谢
看看 这段代码 ```cpp #include using namespace std; long long ans = 0; long long work(long long n) { long long num = 1, sum = 0; while (n - num >= 0) { n -= num; num++…
在讨论《Sub#1全错,100分求调》回复:
谢谢
在讨论《Sub#1全错,100分求调》回复:
WA了