Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
81166 sh25_zhangyy 短信计费 C++ 通过 0 MS 248 KB 381 2026-01-04 15:40:33

Tests(1/1):


#include <iostream> #include <iomanip> using namespace std; int main() { int n; cin >> n; double total_cost = 0.0; for (int i = 0; i < n; ++i) { int length; cin >> length; int segments = (length + 69) / 70; total_cost += segments * 0.1; } cout << fixed << setprecision(1) << total_cost << endl; return 0; }


测评信息: