![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
杭电ACM
YANG_LJ_is_ME
这个作者很懒,什么都没留下…
展开
-
杭电ACM——1012——u Caculate e
#include < stdio.h > int factorial ( int ); int main() { double e[10] = { 0 }; int n , i; printf ( "n e\n- -----------\n" ); for ( n = 0 ; n < 10 ; n++ ) { for ( i = 0 ; i <= n...原创 2019-03-31 20:35:49 · 214 阅读 · 0 评论 -
杭电ACM——1009——FatMouse'Trade
第三次完全自己写并一次AC,哈哈哈,虽然用了两三个小时,还行吧,慢慢来,嘿嘿 #include < stdio.h > #include < string.h > int sortIndex ( double[] ); int main() { int M , N , J[1000] , F[1000]; double JavaBeans; //FatMouse换...原创 2019-03-30 22:59:28 · 213 阅读 · 2 评论 -
杭电ACM——1008——Elevator
第二次完全自己写并一次OC,不过这个比较简单,过程很顺利 #include < stdio.h > int upward ( int , int ); int down ( int , int ); int main() { int N , request , totaltime; int current; while ( 1 ) { scanf ( "%d" , &...原创 2019-03-30 22:54:11 · 288 阅读 · 0 评论 -
杭电ACM——1004——LetTheBalloonRise
第一次完全自己写且一次提交就Accepted,开心,纪念一下 并第一次使用markdown #include <stdio.h> #include <string.h> #define MAX_N 1000 #define MAX_COLOR_LENGTH 16 int main() { int N; int i , j , k; char color[MAX_CO...原创 2019-03-26 23:33:17 · 150 阅读 · 0 评论 -
杭电ACM——1006——Tick and Tick
//这个题真的很坎坷了,由于我自己写的精度不够,精度够了又超时······ //解题思想及代码实现来自http://blog.sina.com.cn/s/blog_69fc13c50100l89a.html //通过角速度解题 // --1-- 稍加分析,可以发现对时间离散化计数行不通,因为要想达到精度,则必定超时. // --2-- 既然离散地统计不行,那就改为统计时间段. 试想,指针之间的夹角...原创 2019-04-09 17:45:49 · 268 阅读 · 0 评论