我是马牛逼
追踪最近的用户名外显变动记录。
最近的文章、讨论、云剪贴板与社区记录
# [题目传送门](https://www.luogu.com.cn/problem/P12034) 这道题说难不难,说简单也不简单。关键在于对题目的理解。\ ~~我因为罚时算错被WA了三次~~\ 先放上罚时的计算公式 $$x*297+180000(x为题目通过数)$$ 然后就是模拟了,伪代码如下 ```cpp int…
```cpp #include using namespace std; struct sticks{ int b; string s; }a[100005]; int main(){ int n,m; cin >> n >> m; for(int i=1;i > a[i].b >> a[i].s; } int pos…
在讨论《c++,12点wa,玄关》回复:
谷的数据,输入:\ 5 3\ 6 2\ 7 1\ 5 3\ 4 4\ 0 4\ 0 6
```cpp #include typedef long long ll; using namespace std; int main(){ int a,b; int max__=-1; int choose=0; for(int i=1;i >a >> b; if(a+b>max__&&a+b>=8){ max__=…
在讨论《50分求助(玄关)》回复:
谢谢
```cpp #include using namespace std; int main(){ string s,tmp; cin >> s; tmp = s; reverse(tmp.begin(),tmp.end()); if(tmp==s) cout << "yes" << endl; else cout <<…
在讨论《op3 op4怎么写啊》回复:
queue可以先把元素放到另一个queue里,求完在放回来
在讨论《J 组模拟赛作弊名单》回复:
qp
在讨论《求救,1WA,4TLE(玄关)》回复:
6
在讨论《求救,1WA,4TLE(玄关)》回复:
《满级大佬屠杀新手村》
在讨论《求救,1WA,4TLE(玄关)》回复:
```cpp include using namespace std; int main(){ int n,m,k,x,y,num=0;//n矩阵边长,m火把个数,k萤石个数 cin>>n>>m>>k; bool a[n+1][n+1]; for(int i=1;i >x>>y; a[x][y]=true; a[x+1…
在讨论《求救,1WA,4TLE(玄关)》回复:
按理来说不会T
在讨论《0分求助,悬1关》回复:
80分
在讨论《大佬指点,赏1关》回复:
thank,已关注
```cpp #include using namespace std; const int maxn = 105; struct ren{ string name; int y,m,d,id; }r[maxn]; bool cmp(ren a,ren b){ if(a.y!=b.y){ return a.y b.id…
在讨论《0分求助,悬1关》回复:
已经全部关注
```cpp #include using namespace std; struct msz{ int xh,fs; }a[5005]; bool cmp(msz a,msz b){ if(a.fs!=b.fs){ return a.fs>b.fs; }else{ return a.xh>b.xh; } } int…
在讨论《最后的点TLE88分求助》回复:
thank
在讨论《最后一个超时》回复:
判断位数
在讨论《大佬求助,#7#8#9都是TLE怎么办啊!》回复:
判断位数,不判断会超时的\ ```cpp if(n>=10 && n =1000 && n =100000 && n =10000000 && n<=99999999)return false; return true; ``` 应该能ac
```cpp #include using namespace std; bool is_prime(int n){ if(n==1||n==0) return false; for(int i=2;i 0){a[i]=k%10;k/=10;i++;} for(int j=0;j =10 && n =1000 && n…
在讨论《样例过了,提交全WA》回复:
谢谢,已关注
```cpp #include using namespace std; const int maxn=1500; struct Student{ string name; int old,cj; }student[1009]; int main(){ int n; cin >> n; for(int i=1;i >…
在讨论《求助!80分》回复:
建议不用string,可以用char类型的数组
在讨论《80分求助》回复:
好了
```cpp #include using namespace std; typedef double d; d x,x2,x3,y,y2,y3; d dis(int x1,int y1,int x2,int y2){ d ret; ret=sqrt(pow(abs(x2-x1),2)+pow(abs(y2-y1),2…
在讨论《求助CSP能用万能头么》回复:
?