左脑搏击右脑,屁股代替思考!
追踪最近的用户名外显变动记录。
最近的文章、讨论、云剪贴板与社区记录
```cpp #include using namespace std; int a, n, x[200002]; int zhuanl(int op) {for (int i = 1;; i++) {if (i * i >= a)return i * i;}} int zhuan(int op) {for (int…
wa了一地...... ```cpp #include using namespace std; int n, a[100005]; bool check(int x) { int b[100005], cnt = 0; for (int i = 1; i x)b[++cnt] = a[i]; } for (int i…
```cpp #include using namespace std; int main(){ int l,n,m; cin>>l>>n>>m; int a[50005]; for(int i=0;i >a[i];} int lt=0,rt=n-1,mid,ans=1e9; while(m--){ mid=(lt+r…
在讨论《0分求调》回复:
@[constjk7](luogu://user/678273) 不行啊
```cpp #include using namespace std; int main() { int n, x = 1, y = 1; cin>>n; bool f=1; int nx=0,ny=0; for(int i=1;i<=n;i++){ if(f){ nx=x-1; ny=y+1; if(nx==0){…
在讨论《i need some rescues!(我需要一些帮助!)》回复:
@[tanxinzhi](luogu://user/816155) 那该怎么改?
80分,咋都对不了 ```cpp #include using namespace std; #define ll long long ll f(ll a,ll jz){ long long res,i=0; while(a){ res=res+a%10*int(pow(jz,i)); a/=jz; i++; } re…
```cpp #include using namespace std; #define ll long long ll f(ll a,ll jz){ string res; while(a){ res=char(a%jz+'0')+res; a/=jz; } reverse(res.begin(),res.end()…
### 第四题 book #### 题目描述 输入多个字符串($id$)与对应的分数($f$),先按 $id$ 词典序排,如果有相同的,哪个的 $f$ 大哪个排前面。 #### 解题思路 建一个结构体: ```cpp struct node{ string id; int f; }book[105]; ``` 再使用自…
```cpp #include using namespace std; #define ll long long ll f(ll n,ll i){ ll o=0,op=0; while(n){ o+=n%10*int(pow(op,i)); op++; n/=10; } return o; } ll p,q,r,i=…
在讨论《稻花香里说丰年,听取WA声一片》回复:
@[wky_wsy_](luogu://user/1323415) 我没TLE。不过谢了,我关注你??
求调。 ```cpp #include using namespace std; int n, m; bool has = 0; bool isprime(int n) { for (int i = 2; i * i > n >> m; trueprime(n, m); if (!has)cout << "No"; r…
应该是有漏洞 ```cpp #include using namespace std; int b[30]; int main() { string a; cin>>a; for(int i=0;i<a.length();i++){ b[int(a[i])-97]++; } for(int i=0;i<26;i++){…