zoj 2277 The Gate to Freedom

zoj 2277 The Gate to Freedom,第1张

zoj 2277 The Gate to Freedom
#include<iostream> #include<cstdio> #include<cstring> #include<cstdlib> #include<cmath> #include<queue> #include<stack> #include<vector> #include<algorithm> #include<iomanip> using namespace std;#define lim 105#define PI 3.1415926535#define Pi 3.162#define Len sizeof(struct node) int xx[8]={-1, 0 , 1,-1, 1,-1, 0, 1}; int yy[8]={ 1, 1 , 1, 0, 0,-1,-1,-1}; int min(int x,int y){return x>y?y:x;} int max(int x,int y){return x>y?x:y;}typedef struct node{int t; }node;int compare(const void*elem1,const void *elem2){return(strcmp((char*)elem1,(char*)elem2));}int main() { double n,i,j,k;  while (scanf("%lf", &n) != EOF)  {  j=pow((double)10,n*log10(n)-(int)(n*log10(n))); while((int)j==0) j*=10; printf("%dn",(int)j); }  return 0; }

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/zaji/4908784.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-11-12
下一篇2022-11-12

发表评论

登录后才能评论

评论列表(0条)

    保存