86 solutions

  • -12
    @ 2024-11-27 20:08:50
    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
    	srand((int)time(0)); //产生随机种子 
    	while(1) //死循环 
    	{
    		cout<<char(rand()%50+60)<<" "; //产生一个60到109的ascii 
    	}
    	return 0;
    }
    
    
    • -12
      @ 2024-11-23 11:55:03
      #include<iostream>
      using namespace std;
      int main()
      {
          cout<<"Hello,World!";
          return 0;
      }
      
      • -12
        @ 2024-11-23 9:48:51

        优美的c语言


        • -12
          @ 2024-11-2 16:02:53

          • -12
            @ 2024-10-19 9:10:31

            #include<bits/stdc++.h> using namespace std; const int N=15; int a[N][N]; int main(){ int n; cin>>n; for(int i=0;i<n;i++){ for(int j=0;j<n;j++){ int cnt=1; for(int k=0;k<=i+j;k++){ if(k==0) cnt=1; else cnt*=2; } cout<<cnt<<" "; } cout<<endl; } return 0; }

            • -13
              @ 2025-3-22 13:46:43

              彩蛋挖掘者

              • -13
                @ 2025-1-11 10:20:26

                a

                • -14
                  @ 2025-1-4 10:17:07
                  #include<bits/stdc++.h>
                  using namespace std;
                  int gcd(int a,int b)
                  {
                      if(b==0) return a;
                      return gcd(b,a%b);
                  }
                  int main()
                  {
                      int t,m;
                      cin>>t>>m;
                      for(int i=1;i<=t;i++)
                      {
                          int a,b,c;
                          cin>>a>>b>>c;
                          double delta=b*b-4*a*c;
                      	if(delta==0)
                          {
                              int p=-b,q=2*a;
                              int k=gcd(p,q);
                              p/=k;q/=k;
                              if(q<0)
                              {
                                  p=-p,q=-q;
                              }
                          }
                          else
                          {
                              int p=-b,q=2*a;
                              int sd=sqrt(delta);
                              if(sd*sd==delta)
                              {
                                  if(q<0)
                                  {
                                      p=-p,q=-q;
                                  }
                                  p+=sd;
                                  int k=gcd(p,q);
                                  p/=k;
                                  q/=k;
                                  if(q<0)
                                  {
                                      p=-p,q=-q;
                                  }
                                  
                              }
                              else
                              {
                                  int k=gcd(p,q);
                                  p/=k;
                                  q/=k;
                                  if(q<0)
                                  {
                                      p=-p;
                                      q=-q;
                                  }
                                  int d1=1,d2=delta;
                                  int q=abs(2*a);
                                  for(int i=sd;i>=1;i--)
                                  {
                                      int j=i*i;
                                      if(d2%j==0)
                                      {
                                          d2/=j;
                                          d1*=i;
                                          break;
                                      }
                                  }
                                  k=gcd(d1,q);
                                  d1/=k;
                                  q/=k;
                              }
                          }
                      }
                  	cout<<"Hello,World!";
                      return 0;
                  }
                  
                  • -14
                    @ 2024-11-26 20:40:28
                    没有向前只停留,
                    有梦在心勇追求。
                    实践锻炼真功夫,
                    力争上游展风流。
                    • -14
                      @ 2024-7-10 9:43:42

                      image

                      • -15
                        @ 2025-1-16 13:32:36

                        #include<bits/stdc++.h> using namespace std; int main() { cout<<"Hello,World!"; }

                        • -16
                          @ 2025-3-1 16:10:37

                          • -16
                            @ 2025-1-11 10:20:33

                            aaaaaaaaaaa

                            • -16
                              @ 2024-12-21 9:07:41

                              实体编号 1 生命体等级 Variation 分类 Humans/Faculty 栖息地 "地球🌍"Classroom 描述: —————————————————————————————————————————————————— 季总是隶属于组织"粒子乐酷少儿编程"的高级员工,主要工作是针对9-15岁并报名了C++课程的部分学员进行授课。

                              行为: —————————————————————————————————————————————————— 授课:季总会精心准备每一堂课程,确保内容既涵盖了C++编程的核心概念,又能够贴近学生的兴趣和实际需求。在课堂上,他注重与学生的互动,鼓励学生提问和讨论,以加深他们对知识点的理解。 答疑解惑:对于学生在学习中遇到的问题和困惑,季总总是耐心解答,确保每个学生都能跟上学习进度。他善于用简单易懂的语言解释复杂的概念,帮助学生克服学习障碍。 个性化指导:季总深知每个学生的学习风格和能力存在差异,因此他会根据每个学生的实际情况,提供个性化的学习建议和指导。通过定期的一对一辅导或小组讨论,他帮助学生发现并发挥自己的优势,同时针对薄弱环节进行加强训练。 课程开发与优化:除了日常的教学工作外,季总还积极参与课程内容的开发和优化工作。他根据教学反馈和市场需求,不断调整和完善课程内容,确保学生能够学到最实用、最前沿的编程知识。 对非正式成员的交流:对于未报名但对编程感兴趣的学生或家长,季总也乐于与他们进行交流。他会分享编程的乐趣和重要性,解答他们的疑问,并鼓励他们加入学习行列。同时,他也会听取他们的意见和建议,以便更好地改进教学工作。

                              行为准则: 应当 ·诚实 ·铀碍 ·与同学核邪相处

                              不应 ·妻富铜穴 ·杀谎

                              • @ 2024-12-21 10:18:45

                                不许抄袭!!!

                            • -16
                              @ 2024-7-13 11:35:35

                              image

                              • -16
                                @ 2024-7-12 10:04:05

                                image

                                • -16
                                  @ 2024-7-11 10:27:11
                                  #include<bits/stdc++.h>
                                  using namespace std;
                                  const int N=110;
                                  int f[N],v[N][N],w[N][N],s[N]; 
                                  int main()
                                  {
                                  	int n,V;
                                  	cin>>n>>V;
                                  	for(int i=1;i<=n;i++)
                                  	{
                                  		cin>>s[i];
                                  		for(int j=1;j<=s[i];j++)
                                  		{
                                  			cin>>v[i][j]>>w[i][j];
                                  		}
                                  	}
                                  	for(int i=1;i<=n;i++)
                                  	{
                                  		for(int j=V;j>=0;j--)
                                  		{
                                  			for(int k=1;k<=s[i];k++)
                                  			{
                                  				if(j>=v[i][k])
                                  				{
                                  					f[j]=max(f[j],f[j-v[i][k]]+w[i][k]);
                                  				}
                                  			}
                                  		}
                                  	}
                                  	cout<<f[V];
                                  	return 0;
                                  }
                                  
                                  
                                  • -17
                                    @ 2024-7-5 15:10:19
                                    #include<bits/stdc++.h>
                                    using namespace std;
                                    int main()
                                    {
                                        cout<<"Hello,World!";
                                        return 0;
                                    }
                                    
                                    • -18
                                      @ 2024-7-2 16:12:32
                                      #include<bits/stdc++.h>
                                      using namespace std;
                                      int main()
                                      {
                                          cout<<"Hello,World!";
                                          return 0;
                                      }
                                      

                                      Information

                                      ID
                                      838
                                      Time
                                      1000ms
                                      Memory
                                      256MiB
                                      Difficulty
                                      1
                                      Tags
                                      # Submissions
                                      930
                                      Accepted
                                      178
                                      Uploaded By