2015-06-01から1ヶ月間の記事一覧

0125 - Day Count

#include <cstdlib> #include <iostream> using namespace std; bool Leap_Year(int year) { if ( !(year%400) || (!(year%4) && year%100) ) return true; return false; } int Get_Sum(int year, int month, int day) { int month_data[12]={31, 28, 31, 30, 31, 30, 31, 31, </iostream></cstdlib>…

0124 - League Match Score Sheet

#include <functional> #include <iostream> #include <map> #include <string> using namespace std; void Slove(int n) { int win, draw, lose; string country; multimap< int,string,greater<int> > data; for (int i=0; i<n; ++i) { cin >> country >> win >> lose >> draw; data.insert( multimap<int,string>::value…</int,string></n;></int></string></map></iostream></functional>