⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 1060b.cpp

📁 ACM 威士忌部分答案
💻 CPP
字号:
/*
1060b Leftmost Digit
Time Limit : 1000 ms  Memory Limit : 32768 K  Output Limit : 1024 K

0 MS 364 KB 425 B 
GUN C++
*/
#include <iostream.h>
#include <math.h>
#define e 2.718281828459045376

int main()
{
  long test ;
  long double bit ;
  long long n ;
  cin >> test ;

    while( test --)
    {
        cin>>n;
        long double temp;
        long double i;
        temp=n*log(n);
        i=floor(temp/log(10));
        temp=temp-i*log(10);
        bit=pow(e,temp);
        cout<<int(bit)<<endl;
    }
   return 0 ;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -