結果
| 問題 | 
                            No.722 100×100=1000
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2018-08-04 19:53:20 | 
| 言語 | C++11(廃止可能性あり)  (gcc 13.3.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 442 bytes | 
| コンパイル時間 | 1,416 ms | 
| コンパイル使用メモリ | 160,220 KB | 
| 実行使用メモリ | 5,248 KB | 
| 最終ジャッジ日時 | 2024-10-12 10:51:13 | 
| 合計ジャッジ時間 | 2,380 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge3 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 4 | 
| other | AC * 17 WA * 10 | 
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main()
{
    int a[2];
    cin >> a[0] >> a[1];
    long long t = 1LL * a[0] * a[1];
    int c = 0;
    for( int x : a ){
        string s = to_string(abs(x));
        if( s.size() > 1 ) s = s.substr(2);
        for( auto x : s ) if( c += (x != '0') ) continue;
    }
    if( !c ) cout << t / 10;
    else if( t < 1e8 ) cout << t;
    else cout << "E";
    cout << endl;
    return 0;
}