GPA Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 814 Accepted Submission(s): 530
Problem Descrip
原创
2023-03-18 09:49:38
49阅读
HDU 4802 GPA 我想说STL会上瘾,省时省心,自从知道以后一直用现在几乎每个题都在用。 真的上瘾了,只要用得上,基本都会用,,,,,谁来救救我。。。 一道没有难度的题目,读懂题意都能做。就是有个权值算个数。。。 9926744 2014-01-05 21:24:46 Accepted 4802 15MS
原创
2014-01-05 21:30:00
389阅读
思路:水题#include using namespace std;map vis;i"] = 3.0, vis["B-"] = 2.7, vis["C+"] = 2.3;
原创
2023-06-09 18:31:21
45阅读
GPATime Limit: 20 SecMemory Limit: 256 MB题目连接http://acm.hdu.edu.cn/showproblem.php?pid=4802DescriptionIn college, a student may take several courses. ...
原创
2021-07-16 14:49:20
140阅读
GPATime Limit: 1000msMemory Limit: 32768KBThis problem will be judged onHDU. Original ID:440664-bit integer IO format:%I64d Java class name:MainGPA(Gr...
转载
2014-11-26 23:25:00
109阅读
Fang FangTime Limit: 1500/1000 MS (Java/Others) Memory Limit: 65535/32768 K (Java/Others)Total Submission(s): 849 Accepted Submission(s): 350Problem DescriptionFang Fang says
原创
2023-08-15 17:24:36
37阅读
Problem DescriptionXueba: Using the 4-Point Scale, my GPA is 4.0.In fact, the AVERAGE SCORE of Xueba is calculated by the following formula:AVERAGE SC...
转载
2015-12-28 11:36:00
88阅读
2评论
The calculation of GPATime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65
原创
2022-08-11 16:10:21
25阅读
主要的字符串处理转换。 喷一喷HDU这个超级垃圾的推断系统:假设把数字存入字符串数组中输出就会错误。 如:A2B3C。假设当中的2和3保存如字符串数组中。然后输出那么就推断为WA,必须是即时输出数字2和3才算正确。 这样判我WA,哎。 HDU做好点你们的推断系统吧。 #include <string
转载
2017-06-18 20:51:00
46阅读
2评论
Flying to the MarsTime Limit: 5000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Problem DescriptionIn the year 8888, the Earth is ruled by the PPF Empire . As the
原创
2023-05-29 18:13:56
67阅读
展开字符串Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 1698 Accepted Submission(s): 803Problem Description在纺织CAD系统开发过程中,经常会遇到纱线排列的问题。
原创
2023-02-17 09:28:40
69阅读
字符串统计Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 151795 Accepted Submission(s): 83529Problem Description对于给定的一个字符串,统计其中数字字符出现的次数。 Input输入
转载
2021-06-09 13:32:09
101阅读
Fang Fang Time Limit: 1500/1000 MS (Java/Others) Memory Limit: 65535/32768 K (Java/Others)Total Submission(s): 1317 Accepted Submission(s): 548 Proble
原创
2021-07-21 15:36:33
151阅读
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1274一开始solve没有返回位置,然后递归的时候就出错了。。。STL特别好用。。。View Code 1 #include<iostream> 2 #include<string> 3 using namespace std; 4 5 int solve(string &str,string &restr,int pos){ 6 int len=str.length(); 7 while(pos<len){ 8 //是字母 9 if(str[p...
转载
2013-02-26 17:05:00
102阅读
2评论
展开字符串Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/O
转载
2012-08-30 11:44:00
58阅读
2评论
OJ地址:http://acm.hdu.edu.cn/showproblem.php?pid=2017对于给定的一个字符串,统计其中数字
原创
2022-06-29 17:29:29
104阅读
五层循环,暴力求解#include #include using namespace std;const int INF = 0x3f3f3f3f;i", &avera
原创
2022-08-17 15:23:20
19阅读
最小时就都当69,最大时都当85。。#include #include #include #include #include #include #include #include using namespace std;#define N 5000int av, n;int s[N];double go(int x){ if(x< 60)return
原创
2021-08-13 14:01:19
75阅读
点击打开链接一个fibonacci的变形。。 #include<stdio.h>#include<string.h>int ans[55][27];int main(){ int n,i,j,t; char s1[31],s2
转载
2013-04-06 17:27:00
27阅读
2评论
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1306思路:一开始还以为是求最长公共序列呢。。。仔细一看,orz.....就是求两个串匹配时公共部分字符最多相同的个数。。。View Code 1 #define _CRT_SECURE_NO_WARNINGS 2 #include 3 #include 4 #include 5 #include 6 using namespace std; 7 8 int gcd(int a,int b){ 9 return a%b==0?b:gcd(b,a%b);10 }11 12 13 int m...
转载
2013-04-26 18:25:00
21阅读
2评论