結果

問題 No.722 100×100=1000
ユーザー chocoruskchocorusk
提出日時 2018-08-03 22:53:28
言語 C++11
(gcc 11.4.0)
結果
TLE  
実行時間 -
コード長 631 bytes
コンパイル時間 498 ms
コンパイル使用メモリ 72,984 KB
実行使用メモリ 13,880 KB
最終ジャッジ日時 2024-04-20 15:01:14
合計ジャッジ時間 4,081 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
9,888 KB
testcase_01 AC 2 ms
6,940 KB
testcase_02 AC 1 ms
6,944 KB
testcase_03 AC 2 ms
6,940 KB
testcase_04 AC 1 ms
6,940 KB
testcase_05 AC 1 ms
6,940 KB
testcase_06 AC 2 ms
6,944 KB
testcase_07 AC 2 ms
6,940 KB
testcase_08 AC 1 ms
6,940 KB
testcase_09 AC 1 ms
6,940 KB
testcase_10 AC 1 ms
6,944 KB
testcase_11 AC 1 ms
6,944 KB
testcase_12 AC 1 ms
6,940 KB
testcase_13 TLE -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
testcase_25 -- -
testcase_26 -- -
testcase_27 -- -
testcase_28 -- -
testcase_29 -- -
testcase_30 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <cstdio>
#include <cstring>
#include <iostream>
#include <string>
#include <cmath>
#include <bitset>
#include <vector>
#include <map>
#include <set>
#include <queue>
#include <deque>
#include <algorithm>

using namespace std;
typedef long long int ll;
typedef pair<int, int> P;

int main()
{
	ll a, b;
	cin>>a>>b;
	ll a1=abs(a), b1=abs(b);
	int n=0, m=0;
	while(a1%10==0){
		a1/=10;
		n++;
	}
	while(b1%10==0){
		b1/=10;
		m++;
	}
	if(n>=2 && m>=2 && 1<=a1 && a1<=9 && 1<=b1 && b1<=9){
		cout<<a*b/10<<endl;
		return 0;
	}
	if(-99999999<=a*b && a*b<=99999999){
		cout<<a*b<<endl;
	}else{
		cout<<"E"<<endl;
	}
	return 0;
}
0