还是很兴奋地用了map.....
题目链接:http://poj.org/problem?id=1004
Source Code
Problem: | User: | |
Memory: 252K | Time: 16MS | |
Language: C++ | Result: Accepted |
-
- Source Code
#include#include using namespace std;int main(int argc, const char * argv[]){ float accout[12]; float sum=0; int i=0; while(i<12) { cin>>accout[i]; sum+=accout[i]; i++; } float average=sum/12.0; cout<<"$"< < < <