Skip to content

Instantly share code, notes, and snippets.

@logicmd
Created September 1, 2012 09:08
Show Gist options
  • Save logicmd/3567811 to your computer and use it in GitHub Desktop.
Save logicmd/3567811 to your computer and use it in GitHub Desktop.
ZOJ 8-15 Problem A
/*************************************************************************
Author: logicmd
Created Time: 2012/8/21 23:37:36
File Name: A.cpp
Description:
************************************************************************/
#include <cassert>
#include <iostream>
#include <vector>
#include <map>
#include <cstdio>
#include <string>
#include <utility>
#include <algorithm>
using namespace std;
pair<int, int> getLength(int x)
{
int i = 1;
while((x /= 10) >= 1)
i++;
return i;
}
int main()
{
int m, n;
cin >> m >> n;
int mi = 1, ni = 1;
while((m /= 10) >= 1)
mi++;
while((n /= 10) >= 1)
ni++;
system("PAUSE");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment