2 条题解

  • 1
    @ 2025-7-15 10:04:56

    我脑瓜子嗡嗡的,全是青蛙叫

    #include <bits/stdc++.h> 
    using namespace std;
    int main ()
    {
    	int n;
    	cin>>n;
    	for(int i=1;i<=n;i++)
    	{
    		cout<<i<<"只青蛙"<<i<<"张嘴,"<<i*2<<"只眼睛"<<i*4<<"条腿。"<<endl;
    	}
    	return 0;
    }
    
    • 0
      @ 2025-6-1 23:36:58

      #include <bits/stdc++.h> using namespace std; int main() { int n; cin>>n; for(int i=1; i<=n; i++) { cout<<i<<"只青蛙"<<i<<"张嘴,"<<2i<<"只眼睛"<<4i<<"条腿。"<<endl; } return 0; }

      • 1

      信息

      编号
      2317
      时间
      1000ms
      内存
      256MiB
      难度
      2
      标签
      递交数
      111
      已通过
      49
      上传者