結果

問題 No.722 100×100=1000
ユーザー chocopuu
提出日時 2018-11-10 21:20:52
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 463 bytes
コンパイル時間 1,487 ms
コンパイル使用メモリ 166,040 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-10-12 11:15:36
合計ジャッジ時間 2,395 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3 WA * 1
other AC * 24 WA * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
#define int long long
const int MOD=1000000007;
const int INF=1e18;

signed main(){
    cin.tie(0);
	ios::sync_with_stdio(false);
    int A , B;
    std::cin >> A >> B;
    int ans = A*B;
    if (A%100==0 && B%100==0 && A>0 && B>0)
    {
        std::cout << A*B/10 << "\n";
        return 0;
    }
    if (abs(A*B)<=99999999)
    {
        cout<<A*B<<endl;
    }else{
        cout<<'E'<<endl;
    }

    return 0;
}
0