贪心(1A)
#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<set>
#include<algorithm>
#include<map>
#include<vector>
#include<queue>
#include<iostream>
#include<string>
#include<cmath>
#define FOR(i,a,b) for(i=(a);i<=(b);i++)
#define ROF(i,a,b) for(i=(a);i>=(b);i--)
typedef long long LL;
using namespace std;
string S,st;
int strtoint(string s)
{
int j=s.size()-1;
int sum=0,x=1;
while (j>=0)
{
int xn=s[j]-'0';
sum+=x*xn;
x*=10;
j--;
}
return sum;
}
int main()
{
Views:
448
|
Added by:
dhy0077
|
Date:
10.06.2013