結果

問題 No.722 100×100=1000
ユーザー nxteru
提出日時 2018-08-03 22:34:11
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 586 bytes
コンパイル時間 890 ms
コンパイル使用メモリ 81,892 KB
実行使用メモリ 13,632 KB
最終ジャッジ日時 2024-10-12 10:37:11
合計ジャッジ時間 4,801 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 7 WA * 2 TLE * 1 -- * 17
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <algorithm>
#include <vector>
#include <set>
#include <map>
#include <queue>
#include <stack>
#include <cstdio>
#include <cstring>
#include <math.h>
using namespace std;
typedef long long ll;
typedef double D;
typedef pair<int,int> P;
#define M 1000000007
#define F first
#define S second
#define PB push_back
ll a,b;
int main(void){
    cin>>a>>b;
    ll c=a,d=b;
    while(c%10==0)c/=10;
    while(d%10==0)d/=10;
    if(abs(c)<10&&abs(d)<10){
        cout<<a*b/10<<endl;
    }else if(-99999999<=a*b&&a*b<=99999999)cout<<a*b<<endl;
    else cout<<"E\n";
}
0