3 条题解

  • -1
    @ 2024-1-12 14:43:29
    #include<iostream>
    #include<math.h>
    #include<iomanip>
    using namespace std;
    int main(){
    	int n,h;
    	cin>>hex>>n;
    	cin>>h;
    	for(int i=0;i<h;i++){
    		for(int j=0;j<=i;j++){
    			cout<<setw(5)<<left<<hex<<uppercase<<n;
    			n+=h;
    		}
    		cout<<endl;
    	}
    	return 0;
    }
    

    18级考试 _十六进制数字三角形

    信息

    ID
    577
    时间
    1000ms
    内存
    256MiB
    难度
    6
    标签
    递交数
    30
    已通过
    10
    上传者