Rust在线运行

版本:

编辑于 2022-12-06 20:09 累计访问:18147
点击了解高性能代码运行API
运行结果
代码简介
代码仓库
极速运行
终端运行
图形+终端

                        
用户最新保存的代码
查看更多

作者 西门铲雪(qfang)
编辑于:2022-12-06 20:09

[package] name = "hello_rust" version = "0.1.0" authors = ["gress"] edition = "2018"

[dependencies] anyhow= “0.1”

提示:本站严禁涉政、违法等无关技术的内容
发送
搭载国产梦丘操作系统,支持安装软件,在线编程可视化开发软件,无需配置开发环境

点击购买 梦丘固件
  #include <iostream> #include <math.h> int main() { double a; printf(“请输入初始感染人数:"); scanf_s( %lf”, &a); double b:printf(“请输入感染天数:”); scanf_s( %1f”,&b); double ans= pow(2, b); double c; scanf_s(“%lf”,&c); c= a * ans; printf("在第%d天后,感染人数为:%.0f人\n”,b,c); return 0; } 3732

  1. 数据排序 假设有如下字符串“A12”,其中“A”表示数据类型(A-Z),“12”表示数据序号(0-9)。 现在需要对一组数据先按照数据序号再按照数据类型进行排序。 例如:["B3","D2","F1","A9","D12","A2","C1","Z0","B1"]=>["Z0","B1","C1","F1","A2","D2","B3","A9","D12"] 5831

  [package] name = "hello_rust" version = "0.1.0" authors = ["gress"] edition = "2018" [dependencies] anyhow= “0.1” 18148

  #注释:输入两门学科(满分100分)的成绩score1、score2; score1 = int(input("请输入score1的值:")) score2 = int(input("请输入score2的值:")) #注释:在以下区域中编写代码,实现:如果两门 #成绩中有一门大于60分就输出“通过”,否则输出“加油”。 6180

  假设有如下字符串“A12”,其中“A”表示数据类型(A-Z),“12”表示数据序号(0-9)。 现在需要对一组数据先按照数据序号再按照数据类型进行排序。 例如:["B3","D2","F1","A9","D12","A2","C1","Z0","B1"]=>["Z0","B1","C1","F1","A2","D2","B3","A9","D12"] 2191

  程序找出字符串“My name is Tom, I come from China.”中的大写字母,并打印输出 1128

  编写这样一个程序找出字符串“My name is Tom, I come from China.”中的大写字母,并打印输出 721

  编写这样一个程序找出字符串“My name is Tom, I come from China.”中的大写字母,并打印输出 592

  编写这样一个程序找出字符串“My name is Tom, I come from China.”中的大写字母,并打印输出 936

  编写这样一个程序找出字符串“My name is Tom, I come from China.”中的大写字母,并打印输出。 605

  编写这样一个程序找出字符串“My name is Tom, I come from China.”中的大写字母,并打印输出。 830

  教学大纲页面 增加① id="w999" ②id="widthfull" 删除三处的border-top: 1px dashed windowtext;包含“活动简介”“资源”“时长min” 594

undelete [name] /au
name 属性
animation-name 属性