![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
POJ
lambsnow
博文中的解法全部AC过的
展开
-
【POJ】1001. Exponentiation
注:求幂的过程中,每乘一次,都要进行进位,防止溢出。#include <stdio.h> #include <string.h> char in[6]; int r[6]; int n; int o[200]; int digits;int main(int argc, char *argv[]) { int i, j, k, t; int nonzeros; bool fl原创 2016-10-12 19:15:12 · 233 阅读 · 0 评论 -
【POJ】1002. 487-3279
注:在输出数字的时候,不要忘了开头0补齐。#include <stdio.h> #include <string.h> #include <map>using namespace std;int main(int argc, char *argv[]) { map<int, int> mm; int num[26] = {2, 2, 2, 3, 3, 3, 4, 4, 4, 5, 5原创 2016-10-12 21:10:57 · 204 阅读 · 0 评论 -
【POJ】1003. Hangover
#include <stdio.h>int main(int argc, char *argv[]) { float in; float i, j, k; float sum; scanf("%f", &in); while (in != 0.00) { sum = 0.00; i = 0.00; while (原创 2016-10-12 21:38:11 · 251 阅读 · 0 评论 -
【POJ】1004. Financial Management
#include <stdio.h> #include <math.h>int main(int argc, char *argv[]) { int i; float money; float sum = 0.00; float ave; for (i = 0; i < 12; i++) { scanf("%f", &money);原创 2016-10-12 21:51:35 · 235 阅读 · 0 评论 -
【POJ】1005. I Think I Need a Houseboat
#include <stdio.h> #include <cmath> #define pi 3.1415926536using namespace std;int main(int argc, char *argv[]) { int n; float x, y; scanf("%d", &n); float preR2, R2; int i; int原创 2016-10-12 22:42:52 · 215 阅读 · 0 评论