首页 > 简单题
头像 云海中的孤舟
发表于 2020-05-24 21:24:32
contest/85/A #include<bits/stdc++.h> using namespace std; int main(){ int a,b,c,t; cin>>t; while(t--){ cin>>a> 展开全文
头像 小琢卷不动
发表于 2021-11-23 14:26:39
考察 map 的使用方法,如果你会使用 map 那么对着题意模拟即可。 对于每一种手势,记录能打败它的手势,如果 map 中不存在这种手势就输出 Fake,否则输出能打败它的手势即可。 #include<map> #include<cstdio> #include<st 展开全文
头像 QWQ-ea
发表于 2023-09-19 17:04:40
注意E的小数位数会影响输出: #include <bits//stdc++.h> #define e 2.718281828459045 using namespace std; int main(){     int t;  &n 展开全文
头像 小琢卷不动
发表于 2021-11-23 10:47:57
作为小白我们虽然看不懂第一个式子到底等于什么,但是也可以做这道题。 考虑第二个式子和第三个式子,实际上就可以化成 β×θα\beta\times\theta^{\alpha}β×θα 的形式。 然后把样例的两个值代入, {196×θ5=29089.060×θ3=1205.1322\begin{cas 展开全文
头像 kkk03
发表于 2023-08-05 16:48:58
首先,我们得先推导一下这个式子的本质首先,我们得先推导一下这个式子的本质首先,我们得先推导一下这个式子的本质 ν→∞(1+1v)v\lim _{\nu \rightarrow \infty}\left( 1+\frac{1}{v} \right) ^vν→∞lim​(1+v1​)v 知道了这个式子 展开全文
头像 FlashKnight
发表于 2023-10-11 17:04:54
问题就在于最后的保留小数位数上 因为保留位数题目最多要求保留5位 printf不能变保留位数 所以我们写一个函数 用字符串格式输出 根据题目给的保留位数改变字符串 以此来达到printf保留可变小数位数 #include<bits/stdc++.h> using namespace st 展开全文
头像 duangduang羊
发表于 2023-08-08 19:28:10
#include <iostream> #include <cmath>//包含函数exp(n),该函数可求自然数e的n次方 #include <iomanip> using namespace std; int main() { int t; c 展开全文
头像 CARLJOSEPHLEE
发表于 2024-10-28 13:06:03
考察格式化输出 from math import exp t = int(input()) for _ in range(t): a,b,c = map(int,input().split()) temp = b*exp(a) print(f"{temp:.{c}f}") 展开全文