結果
| 問題 | 
                            No.722 100×100=1000
                             | 
                    
| コンテスト | |
| ユーザー | 
                             focus
                         | 
                    
| 提出日時 | 2018-08-04 08:03:35 | 
| 言語 | C++14  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 435 bytes | 
| コンパイル時間 | 559 ms | 
| コンパイル使用メモリ | 67,648 KB | 
| 実行使用メモリ | 6,820 KB | 
| 最終ジャッジ日時 | 2024-10-12 10:46:08 | 
| 合計ジャッジ時間 | 1,502 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge1 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 WA * 1 | 
| other | AC * 26 WA * 1 | 
ソースコード
#include<iostream>
#include<cmath>
using ll = long long;
using namespace std;
int main(){
    ll a,b;
    ll ans;
    cin >> a >> b;
    ans = a*b;
    if(abs(a)>=100&&abs(b)>=100){
    while(a%10==0)  a/=10;
    while(b%10==0)  b/=10;
    if(a<10&&b<10){
          cout << ans/10 << endl;
          return 0;
         }
    }
    if(ans >= -99999999 && ans <= 99999999) cout << ans << endl;
    else    cout << "E\n";
    return 0;
}
            
            
            
        
            
focus