結果
問題 |
No.722 100×100=1000
|
ユーザー |
|
提出日時 | 2018-09-04 20:18:01 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 369 bytes |
コンパイル時間 | 1,717 ms |
コンパイル使用メモリ | 159,212 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-12 11:06:24 |
合計ジャッジ時間 | 2,145 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 WA * 1 |
other | AC * 18 WA * 9 |
ソースコード
#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,a))*pow(10,b)){ cout<<A*B/10<<endl; } else { ans = A*B; if(ans <= 99999999 && -99999999 <= ans) cout<<ans<<endl; else cout<<"E"<<endl; } return 0; }