1108. Finding Average (20)-PAT甲级真题

The basic task is simple: given N real numbers, you are supposed to calculate their average. But what makes it complicated is that some of the input numbers might not be legal. A “legal” input is a real number in [-1000, 1000] and is accurate up to no more than 2 decimal places. When you calculate the average, those illegal numbers must not be counted in.

Input Specification:

Each input file contains one test case. For each case, the first line gives a positive integer N (<=100). Then N numbers are given in the next line, separated by one space.

Output Specification:

For each illegal input number, print in a line “ERROR: X is not a legal number” where X is the input. Then finally print in a line the resu

Building project ... [Trace]: Executing external command: dotnet build E:\正在编写的网站\UserManagementSystem\UserManagementSystem.Web\UserManagementSystem.Web.csproj --configuration Debug --framework net9.0 [Trace]: Executing external command: dotnet exec --runtimeconfig E:\正在编写的网站\UserManagementSystem\UserManagementSystem.Web\bin\Debug\net9.0\UserManagementSystem.Web.runtimeconfig.json --depsfile E:\正在编写的网站\UserManagementSystem\UserManagementSystem.Web\bin\Debug\net9.0\UserManagementSystem.Web.deps.json C:\Users\sunyu\.nuget\packages\microsoft.visualstudio.web.codegeneration.design\9.0.0\lib\net8.0\dotnet-aspnet-codegenerator-design.dll --no-dispatch --port-number 59285 identity --dbContext UserManagementSystem.Web.Data.ApplicationDbContext --files Account.Login;Account.Register;Account.Logout;Account.Manage.Index --startup-project . --dispatcher-version 9.0.0 [Trace]: Command Line: --no-dispatch --port-number 59285 identity --dbContext UserManagementSystem.Web.Data.ApplicationDbContext --files Account.Login;Account.Register;Account.Logout;Account.Manage.Index --startup-project . --dispatcher-version 9.0.0 Finding the generator 'identity'... Running the generator 'identity'... Specify --help for a list of available options and commands. Unrecognized option '--startup-project' at Microsoft.Extensions.CommandLineUtils.CommandLineApplication.HandleUnexpectedArg(CommandLineApplication command, String[] args, Int32 index, String argTypeName, Boolean ignoreContinueAfterUnexpectedArg) at Microsoft.Extensions.CommandLineUtils.CommandLineApplication.Execute(String[] args) at Microsoft.VisualStudio.Web.CodeGeneration.ActionInvoker.Execute(String[] args) at Microsoft.VisualStudio.Web.CodeGeneration.CodeGenCommand.Execute(String[] args) RunTime 00:00:04.76
最新发布
10-04
评论 11
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值