社区讨论
关于马上要考的CSP-J
学术版参与者 11已保存回复 30
讨论操作
快速查看讨论及其快照的属性,并进行相关操作。
- 当前回复
- 30 条
- 当前快照
- 1 份
- 快照标识符
- @mhizlu5f
- 此快照首次捕获于
- 2025/11/03 18:18 4 个月前
- 此快照最后确认于
- 2025/11/03 19:33 4 个月前
几个问题
- 可否用
mmap __int128除了std::abs(i128)和std::cin/std::cout/std::cerr i128之外,还有什么会 CE 的地方- CCF 少年机的速度可否理解为和 ATCoder 差不多
- 会卡
umap/uset/998244353吗? - 知周所众 noi-linux 的 VSCode 在断网安装下是纯纯的记事本,那可不可以把 CB 的编译器迁到 VSCode 中?如果不可以,当我没说,如果可以,如何操作?
- 下面是我的代码模板,帮看看有没有会 CE/UB 的地方(在本地的 noi-linux)可以过编:
缺省原
CPP#pragma GCC optimize("Ofast")
#pragma GCC optimize("unroll-loops")
#include <bits/stdc++.h>
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,avx2,tune=native")
#define int long long
#define all(x) x.begin(),x.end()
using namespace std;
#ifdef __linux__
#define gc getchar_unlocked
#define pc putchar_unlocked
#else
#define gc getchar
#define pc putchar
#endif
bool memorybegin;
namespace fastIO {
template<typename T>inline void r(T&a){
a=0;char ch=gc();bool ok=0;
for(;ch<'0'||ch>'9';)ok^=(ch=='-'),ch=gc();
for(;ch>='0'&&ch<='9';)a=(a<<1)+(a<<3)+(ch^48),
ch=gc();if(ok)a=-a;
}
template<typename T>inline void w(T a){
if(a==0){pc('0');return;}
static char ch[20];
int till=0;
if(a<0){pc('-');
for(;a;)ch[till++]=-(a%10),a/=10;}
else for(;a;)ch[till++]=a%10,a/=10;
for(;till;)pc(ch[--till]^48);
}
struct FIstream {
inline FIstream operator>>(int& a) { r(a); return{}; }
}in;
struct FOstream {
inline FOstream operator<<(const int a) { w(a); return{}; }
inline FOstream operator<<(const char ch) { pc(ch); return{}; }
inline FOstream operator<<(const string s) {
for (int i = 0; i < s.size(); i++)pc(s[i]); return{};
}
}out;
}using fastIO::in; using fastIO::out;
#define eout cerr
#define popcti(val) ((int)__builtin_popcount(val))
#define popct(val) ((int)__builtin_popcountll(val))
void Freopen(string s) { freopen((s + ".in").c_str(), "r", stdin); freopen((s + ".out").c_str(), "w", stdout); }
namespace code{
void solve(){
}
}
bool memoryend;
signed main() {
#ifndef debug
Freopen("task");
#endif
auto timebegin=clock();
code::solve();
bool *endit=&memoryend,*beginit=&memorybegin;
double Memory=(abs(endit-beginit))/1048576.0;
eout<<"time:"<<clock()-timebegin<<"ms\nmemory:"<<fixed<<setprecision(5)<<Memory<<"Mb\n";
return 0;
}
玄关。
回复
共 30 条回复,欢迎继续交流。
正在加载回复...