205 条题解

  • 0
    @ 2025-12-25 16:46:34

    78

    • 0
      @ 2025-12-25 16:45:59
      
      
      • 0
        @ 2025-12-25 16:39:48
        using namespace std;
        int n,x,a;
        int main()
        {
        	cin>>n;
        	x=n;
        	for(int i=1;i<=x/2+1 ;i++)
        	{
        		for(int k=1;k<=i-1;k++)
        		{
        			cout<<" ";
        		}
        		for(int j=1;j<=n;j++)
        		{
        			cout<<"*";
        		}
        		cout<<endl;
        		n=n-2;
        	}
        }
        
        ```
        
        • 0
          @ 2025-12-25 16:39:25
          #include<bits/stdc++.h>
          using namespace std;
          int s,x,k,g;
          int main()
          {
          	cin>>x;
              while(x>=10)
          	{
              	s=0;
              	while(x)
          		{
          			g=x%10;
          			x=x/10;
          			s=s+g;
          		}
          		x=s;
          	}
              cout<<x;   
          }
          
          • 0
            @ 2025-12-25 16:32:41
            #include<bits/stdc++.h>
            using namespace std;
            int n;
            int main()
            {
            	cin>>n;
            	for(int i=n*2-1;i>=1;i-=2)
            	{
            		for(int j=1;j<n-i/2;j++)cout<<" ";
            		for(int j=1;j<=i;j++)cout<<"*";
            		cout<<endl;
            	}
            }
            
            • 0
              @ 2025-12-25 16:03:02
              using namespace std;
              long long n,i,v,x,k;
              int main()
              {
              cin>>n;
              k=2*n-1;
              for( i=1;i<=n;i++){
              

              for(int j=1;j<=i-1;j++) { cout<<" "; } for( x=1;x<=k;x++){ cout<<"*"; } k-=2; cout<<endl; } return 0;

              
              
              • 0
                @ 2025-12-24 16:48:25

                sssssssssssssssssssssssssssssssssssssssssssssssssssssssssc👎 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

                • 0
                  @ 2025-12-24 16:45:59
                  #include<bits/stdc++.h>
                  using namespace std;
                  int n,m,i;
                  int main()
                  {
                  
                  	cin>>n;
                  	for(i=1;i<=n;i++)
                  	{ 
                  		for(int x=1;x<=i;x++)
                  		{
                  			cout<<"*";
                  		}
                  		cout<<endl;
                  	}
                   }
                  
                  • 0
                    @ 2025-12-24 15:32:05
                    #include<bits/stdc++.h>
                    using namespace std;
                    int n,m,x,a;
                    int main()
                    {
                       cin>>n>>x;
                       for(int i=1;i<=n;i++)
                       {            
                       	cin>>m;
                       	x=x-m;
                       	if(x<=0)
                       	{
                       	a=i;
                    	break;
                    	}
                       }
                       if(x>0) cout<<"WIN";
                       else if(x==0&&a==n) cout<<"KO";
                       else cout<<a; 
                    }
                    
                    • 0
                      @ 2025-12-23 16:45:59
                      using namespace std;
                      int m,t,u,f,d,s,ans;
                      char ch;
                      int main()
                      {
                      cin>>m>>t>>u>>f>>d;
                      {
                      for(int i=1;i<=t;i++)
                      {
                      cin>>ch;
                      if(ch=='U'||ch=='D')
                      {
                      s=s+u+d;
                      
                      }
                      			else if(ch=='F')
                      			{
                      				s=s+f*2;
                      			}
                      		if(m>=s)
                      		{
                      			ans++;
                      		}
                      			else 
                      			{
                      			
                      				break;
                      			}
                      	}
                      cout<<ans;
                      }
                      }
                      
                      • 0
                        @ 2025-12-22 16:57:32

                        巴斯克看见看见偶记傲人提欧爬爬UIGPRJIIARPRHHAIPH;IOIOOI片【ikiorpfaijhpouioiPJAPU9P88AHJHPAUINO9JHAPH8PEU,LJKY048Y35Y786534875897769857GREYRTUTHAOP KAJP SJHIPBAIOTJ9P8HA9U8AU9ERYTUIIHIEHJKUU546374637492

                        14754419667

                        • 0
                          @ 2025-12-18 16:59:33
                          using namespace std;
                          long long t,x,n,s1,s2=1;
                          int main()
                          {
                          	cin>>n;
                          	t=n;
                          	while(n)
                          	{
                          		x=n%10;
                          		n=n/10;
                          		s1=s1+x;
                          		s2=s2*x;
                          	}
                          	if(t%2==0) cout<<s1;
                          		else cout<<s2;
                          }
                          
                          
                          • 0
                            @ 2025-12-18 16:48:36

                            #include <bits/stdc++.h> using namespace std; long long t,x,n,s1,s2=1; int main() { cin>>n; t=n; while(n) { x=n%10; n=n/10; s1=s1+x; s2=s2*x; } if(t%2==0) cout<<s1; else cout<<s2; }

                            • 0
                              @ 2025-12-18 16:46:44

                              #include <bits/stdc++.h> using namespace std; long long t,x,n,s1,s2=1; int main() { cin>>n; t=n; while(n) { x=n%10; n=n/10; s1=s1+x; s2=s2*x; } if(t%2==0) cout<<s1; else cout<<s2; }

                              • 0
                                @ 2025-12-18 16:17:33
                                using namespace std;
                                
                                int main() {
                                    long long n;
                                    cin >> n;
                                    
                                    long long low = 1;
                                    long long high = 50000;
                                    long long ans = 0;
                                    
                                    while (low <= high) {
                                        long long mid = (low + high) / 2;
                                        long long total = mid * (mid + 1) / 2;
                                        
                                        if (total <= n) {
                                            ans = mid;
                                            low = mid + 1;
                                        } else {
                                            high = mid - 1;
                                        }
                                    }
                                    
                                    cout << ans << endl;
                                    return 0;
                                }
                                
                                • 0
                                  @ 2025-12-17 16:22:32
                                  using namespace std;
                                  int ans;
                                  double s=2,n,y;
                                  int main()
                                  {
                                  cin>>n;
                                  while(y<n)
                                  {
                                  
                                  • 0
                                    @ 2025-12-16 16:47:06
                                    #include <bits/stdc++.h>
                                    using namespace std;
                                    int x,n,s;
                                    int main()
                                    {
                                    cin>>x;
                                    while(x)
                                    {
                                    n=x%10;
                                    s+=n;
                                    x=x/10;
                                    }
                                    cout<<s;
                                    }
                                    
                                    
                                    
                                    • 0
                                      @ 2025-12-16 15:18:27

                                      胡乾元强奸楼jj·吃鱼的贵妃 侵犯 强吻# 胡乾元强奸楼jj·吃鱼的贵妃 侵犯 强吻# 胡乾元强奸楼jj·吃鱼的贵妃 侵犯 强吻

                                      • 0
                                        @ 2025-12-11 15:11:54

                                        妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99

                                        • 0
                                          @ 2025-12-11 15:11:26

                                          妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99 妤彦99

                                          信息

                                          ID
                                          104
                                          时间
                                          1000ms
                                          内存
                                          256MiB
                                          难度
                                          6
                                          标签
                                          递交数
                                          211
                                          已通过
                                          58
                                          上传者