不要发灌水区
%lf,/,%lld(long double无法直接读入)
by Benson2005 @ 2018-10-05 18:53:31
@[404_notfound](/space/show?uid=52577) %%%刘子源大佬
by ShineEternal @ 2018-10-05 18:55:24
```cpp
double a;
long double b;
long long c;
scanf("%lf",&a);
scanf("%llf",&b);
scanf("%lld",&c);
```
by 加载错误 @ 2018-10-05 18:56:46
long double可不可以用%Lf?
我一直用这个
by Rye_Catcher @ 2018-10-05 18:57:38
@[404_notfound](/space/show?uid=52577) ~~读优~~
by A星际穿越 @ 2018-10-05 18:57:42
```cpp
template<class T>
inline T read(T &n){
n=0;int t=1;double x=10;char ch;
for(ch=getchar();!isdigit(ch)&&ch!='-';ch=getchar());(ch=='-')?t=-1:n=ch-'0';
for(ch=getchar();isdigit(ch);ch=getchar()) n=n*10+ch-'0';
if(ch=='.') for(ch=getchar();isdigit(ch);ch=getchar()) n+=(ch-'0')/x,x*=10;
return (n*=t);
}
```
by A星际穿越 @ 2018-10-05 18:58:42
感谢大佬们qwq
by 404_notfound @ 2018-10-05 19:16:50