1 条题解

  • 0
    @ 2026-5-17 14:47:10
    #include<bits/stdc++.h>
    using namespace std;
    int main(){
    	int n;
    	cin>>n;
    	cout<<n*2<<endl;
    	if(n%4)cout<<n%4;
    	while(n>=4){
    		cout<<4;
    		n-=4;
    	}
    	return 0;
    }
    
    • 1

    信息

    ID
    7843
    时间
    2000ms
    内存
    1024MiB
    难度
    5
    标签
    递交数
    22
    已通过
    14
    上传者