#45818: cpp 超級簡單解


1121232@stu.wghs.tp.edu.tw (Ian911436)

學校 : 臺北市私立薇閣高級中學
編號 : 258883
來源 : [60.248.154.143]
最後登入時間 :
2025-05-14 15:36:23
q367. 2. 木桶問題 -- 113學年度新北新莊高中校內資訊學科能力競賽 | From: [60.248.154.139] | 發表日期 : 2025-04-17 12:53

#include <bits/stdc++.h>
using namespace std;

int main() {
    int a, b;
    cin >> a >> b;
    int n[a];
    for (int i=0; i<a; i++){
        cin >> n[i];
    }
    sort(n, n+a);
    cout << b*b*n[0] << "π";
    return 0;
}

 
ZeroJudge Forum