21 条评论

  • @ 2026-8-2 11:35:01

    西瓜老师还打字吗

    🤔 1
  • @ 2026-7-26 20:11:42

    sweezy-cursors.com

    • @ 2026-7-25 20:56:34

      给我点个表情包呗。。。。

      👀 3
      • @ 2026-7-25 20:54:08
        #include<bits/stdc++.h>
        using namespace std;
        int a[1001];
        int tp,n,k;
        int main(){
        	cin >> tp >> n >> k;
        	for(int i = 1;i<=n;i++) cin >> a[i];
        	if(tp==1){//选择排序 
        	for(int i = 1;i<=k;i++){
        		int minid = i;
        		for(int j = i+1;j<=n;j++){
        			if(a[j]<a[minid]) minid = j;
        		}
        		swap(a[i],a[minid]);
        	}
        	}else if(tp==2){//bubble 
        		for(int i = 1;i<=k;i++){
        			for(int j = 1;j<=n-i;j++){
        				if(a[j]>a[j+1]) swap(a[j],a[j+1]);
        			}
        		}
        	}else{//insert
        		if(k==n) k-=1;
        		for(int i = 1;i<=k;i++){
        			for(int j = i;j>=1;j--){  
        				if(a[j]>a[j+1]) swap(a[j],a[j+1]);
        				else break;
        			}
        		}
        	}
        	for(int i = 1;i<=n;i++) cout << a[i] <<" ";
            return 0;
        }
        
        
        • @ 2026-7-25 17:04:44

          👎 3
          • @ 2026-7-25 17:00:56

            👎 2
            🤡 2
            🤣 2
            🍋 2
            • @ 2026-7-24 18:57:35

              • @ 2026-7-23 21:03:12
                #include<bits/stdc++.h>
                using namespace std;
                bool ip(int x){
                	if(x<=1) return false;
                	for(int i = 2;i<=sqrt(x);i++){
                		if(x%i==0) return false;
                	}
                	return true;
                } 
                int ds(int n){
                	int sum = 0;
                	while(n){
                		sum+=n%10;
                		n/=10;
                	}
                	return sum;
                }
                int main(){
                	int l,r;
                	cin>> l >> r;
                	int cnt = 0,mn = -1;
                	for(int i = l;i<=r;i++){
                		if(ip(i) && ip(ds(i))){
                			cnt++;
                			if(mn == -1) mn = i;
                		}
                	}
                	cout << cnt << endl << mn;
                    return 0;
                }
                
                
                • @ 2026-7-23 21:00:19

                  666老师补药拖堂啊, 西西老师快给我发手机啊

                  👍 7
                  😄 6
                  ❤️ 5
                  🤣 5
                  🍋 3
                  • @ 2026-7-24 16:17:02
                    #include<bits/stdc++.h>
                    using namespace std;
                    const int MAXN = 10005;
                    int a[MAXN];
                    
                    int main()
                    {
                        int n;
                        cin >> n;
                        for(int i = 1; i <= n; i++)
                            cin >> a[i];
                        
                        int maxlen = 1;
                        int cur = 1;
                        for(int i = 1; i <= n - 1; i++)
                        {
                            if(a[i + 1] == a[i] + 1)
                            {
                                cur++;
                            }
                            else
                            {
                                cur = 1;
                            }
                            if(cur > maxlen)
                                maxlen = cur;
                        }
                        cout << maxlen;
                        return 0;
                    }
                    
                • @ 2026-7-23 20:42:58
                  #include<bits/stdc++.h>
                  using namespace std;
                  int main(){
                  	string s,op;
                  	int q;
                  	cin >> s >> q;
                  	int n = s.size();
                  	while(q--){
                  		cin >> op;
                  		if(op=="LEFT" && n>0) n--;
                  		if(op=="RIGHT" && n<s.size()) n++;
                  		if(op=="INS"){
                  			char c;
                  			cin >> c;
                  			s.insert(n,1,c);
                  			n++;
                  		}
                  		if(op=="DEL"&&n<s.size()){
                  			s = s.substr(0,n) + s.substr(n+1); 
                  		}
                  		if(op=="REV"){
                  			reverse(s.begin(),s.end());
                  			n = s.size() - n;
                  		}
                  	}
                  	if(s.size() == 0) cout << "EMPTY\n0";
                  	else cout << s << endl << n;
                  
                      return 0;
                  }
                  
                  
                  👍 3
                  • @ 2026-7-23 18:30:35

                    666

                    👍 1
                    😄 1
                    • @ 2026-7-22 20:10:37

                      • @ 2026-7-22 15:25:36

                        ???

                        • @ 2026-7-21 16:56:12

                          奥斯本核心员工的一场事故因为是

                          • @ 2026-7-21 8:46:53

                            u看成都富裕的v用粉笔苏格服务

                            • @ 2026-7-20 11:03:50

                              • @ 2026-7-20 11:03:10

                                你好

                                👎 1
                                🤡 1
                              • @ 2026-7-20 8:35:56

                                1111111111111111111

                                👎 5
                                • @ 2026-7-19 16:31:52

                                  你好

                                  👎 2
                                • @ 2026-7-19 16:10:28
                                • 1