zoj 2277 The Gate to Freedom
来源:互联网 发布:领航软件 编辑:程序博客网 时间:2024/06/07 06:25
N^N = X
---> Nlog10(N) = log10( X )
----> X的最高位为 Nlog10(N) 小数部分的第一个非0位
#include<stdio.h>#include<math.h>int main(void){double n;while(scanf("%lf",&n) != EOF){n = n*log10(n);n = n - (long long int)n;n = pow(10,n);while((int)n == 0)n *= 10;printf("%d\n",(int)n);}return 0;}
- zoj 2277 The Gate to Freedom
- ZOJ 2277 The Gate to Freedom
- zoj 2277 The Gate to Freedom
- ZOJ 2277 The Gate to Freedom(n^n)
- ZOJ.2277 The Gate to Freedom【数论-海伦】 2015/09/16
- zoj2277 The Gate to Freedom
- ZOJ 2281 Way to Freedom
- ZOJ 2281 Way to Freedom
- zoj 2281 Way to Freedom(最短路加强版)
- Freedom of the Park
- The Fifth Freedom
- ZOJ 2281 Way to Freedom(最短路变形-寻找最大流)+ POJ 1797
- ZOJ 1074 To the Max
- ZOJ 1074 To The Max
- ZOJ 1074 To the Max
- ZOJ 1074 To the Max
- ZOJ 1074 To the Max
- ZOJ--1074:To the Max
- 杭电1058
- .htaccess重写规则解析
- linux进程管理之信号处理(1)
- 将中文转换成unicode
- QQ不加群提取群成员软件V7.9
- zoj 2277 The Gate to Freedom
- 常用位操作,写8位 12864串口模式 I2C 1302 18B20
- python-swiftclient api 实例
- Android 学习笔记——利用JNI技术在Android中调用、调试C++代码
- PHP 操作 MongoDB SQL对照表
- 构建高性能网站,针对前台工程师--总结篇
- 【转】eclipse快捷键大全
- 中断解析
- Linux shell脚本的字符串截取