Created
September 1, 2012 09:08
-
-
Save logicmd/3567811 to your computer and use it in GitHub Desktop.
ZOJ 8-15 Problem A
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/************************************************************************* | |
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