結果
| 問題 |
No.722 100×100=1000
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-09-04 20:20:25 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 374 bytes |
| コンパイル時間 | 1,283 ms |
| コンパイル使用メモリ | 159,732 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-10-12 11:06:36 |
| 合計ジャッジ時間 | 2,241 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 WA * 2 |
| other | AC * 17 WA * 10 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
#define int long long
signed main(){
int A, B, a, b, ans;
cin>>A>>B;
a = log10(A);
b = log10(B);
if(A - (A/pow(10,a))*pow(10,a) == 0 && B - (B/pow(10,b))*pow(10,b) == 0){
cout<<A*B/10<<endl;
} else {
ans = A*B;
if(ans <= 99999999 && -99999999 <= ans) cout<<ans<<endl;
else cout<<"E"<<endl;
}
return 0;
}