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