template
2025-01-04 16:03:54
发布于:广东
#include <cstdio>
#include <string>
//#include <_mingw.h>
bool isdigit(char ch){
return ch>='0' and ch<='9';
}
//typedef int __int128 __attribute__ ((__mode__ (TI)));
typedef long long ll;
namespace Read{
int read_int(){
int sum=0,f=1;
char ch=getchar();
while(!isdigit(ch)){
if(ch=='-') f=-1;
ch=getchar();
}
while(isdigit(ch)){
sum=(sum<<1)+(sum<<3)+(ch^48);
ch=getchar();
}
return sum*f;
}
__int128 read___int128(){
__int128 sum=0,f=1;
char ch=getchar();
while(!isdigit(ch)){
if(ch=='-') f=-1;
ch=getchar();
}
while(isdigit(ch)){
sum=(sum<<1)+(sum<<3)+(ch^48);
ch=getchar();
}
return sum*f;
}
ll read_ll(){
ll sum=0,f=1;
char ch=getchar();
while(!isdigit(ch)){
if(ch=='-') f=-1;
ch=getchar();
}
while(isdigit(ch)){
sum=(sum<<1)+(sum<<3)+(ch^48);
ch=getchar();
}
return sum*f;
}
short read_short(){
short sum=0,f=1;
char ch=getchar();
while(!isdigit(ch)){
if(ch=='-') f=-1;
ch=getchar();
}
while(isdigit(ch)){
sum=(sum<<1)+(sum<<3)+(ch^48);
ch=getchar();
}
return sum*f;
}
double read_double(){
double sum=0,f=1.0;
char ch=getchar();
while(!isdigit(ch)){
if(ch=='-') f=-1.0;
ch=getchar();
}
while(isdigit(ch)){
sum=(sum*10)+(ch^48);
ch=getchar();
}
if(ch=='.'){
ch=getchar();
double k=0.1;
const double delta=0.1;
while(isdigit(ch)){
sum=sum+(ch^48)*k;
k*=delta;
ch=getchar();
}
}
return sum*f;
}
long double read_long_double(){
long double sum=0,f=1.0;
char ch=getchar();
while(!isdigit(ch)){
if(ch=='-') f=-1.0;
ch=getchar();
}
while(isdigit(ch)){
sum=(sum*10)+(ch^48);
ch=getchar();
}
if(ch=='.'){
ch=getchar();
double k=0.1;
const double delta=0.1;
while(isdigit(ch)){
sum=sum+(ch^48)*k;
k*=delta;
ch=getchar();
}
}
return sum*f;
}
std::string read_str(){
std::string s;
char ch=getchar();
while(ch!=' ' and ch!=EOF and ch!='\n'){
s+=ch;
ch=getchar();
}
return s;
}
std::string read_Space_str(){
std::string s;
char ch=getchar();
while(ch!=EOF and ch!='\n'){
s+=ch;
ch=getchar();
}
return s;
}
}
namespace Write{
void write_int(int x){
if(x<0) x=-x,putchar('-');
if(x>9) write_int(x/10);
putchar(x%10+'0');
}
void write_ll(ll x){
if(x<0) x=-x,putchar('-');
if(x>9) write_ll(x/10);
putchar(x%10+'0');
}
int count(double& x){
int cnt=0;
while(ll(x)!=x){
++cnt;
x*=10;
}
return cnt;
}
void write_double(double x){
if(x<0) x=-x,putchar('-');
write_ll((ll)x);
if((ll)x==x) return;
putchar('.');
while(ll(x)!=x){
x*=10;
putchar((ll)x%10);
}
}
}
using namespace Read;
using namespace Write;
namespace ReadAndWrite_check{
void check_int(){
int x=read_int();
write_int(x);
}
}
signed main(){
double x=read_double();
//printf("%f\n",x);
write_double(x);
return 114514<10086145254188ull?0:11451410086145254188ull;
}
全部评论 2
never copy
6天前 来自 广东
0114514
6天前 来自 广东
0
有帮助,赞一个