83 solutions

  • -11
    @ 2024-11-26 20:37:30
    我思珍宝遍天涯,
    要寻奇物不辞劳。
    金光闪耀如日辉,
    坷途历险志愈高。
    垃中寻宝心不倦,
    • -12
      @ 2024-11-26 20:58:55

      南村群童欺我老无力,一肘击飞二里地!!!

      • -13
        @ 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;
        }
        
        • -13
          @ 2024-11-6 18:30:43

          • -13
            @ 2024-10-17 18:23:09

            • -13
              @ 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;
              }
              
              
              • -14
                @ 2025-3-1 16:10:37

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

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

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

                    aaaaaaaaaaa

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

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

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

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

                      不应 ·妻富铜穴 ·杀谎

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

                        不许抄袭!!!

                    • -14
                      @ 2024-11-26 20:40:28
                      没有向前只停留,
                      有梦在心勇追求。
                      实践锻炼真功夫,
                      力争上游展风流。
                      • -14
                        @ 2024-7-12 10:04:05

                        image

                        • -14
                          @ 2024-7-10 9:43:42

                          image

                          • -15
                            @ 2024-7-5 15:10:19
                            #include<bits/stdc++.h>
                            using namespace std;
                            int main()
                            {
                                cout<<"Hello,World!";
                                return 0;
                            }
                            
                            • -15
                              @ 2024-7-2 16:12:32
                              #include<bits/stdc++.h>
                              using namespace std;
                              int main()
                              {
                                  cout<<"Hello,World!";
                                  return 0;
                              }
                              
                              • -16
                                @ 2024-7-13 11:35:35

                                image

                                • -18
                                  @ 2024-4-13 19:04:52

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

                                  • -19
                                    @ 2024-5-26 16:16:41

                                    给我点赞的都是大好人

                                    Information

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