結果
問題 |
No.722 100×100=1000
|
ユーザー |
![]() |
提出日時 | 2018-08-24 14:24:39 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 498 bytes |
コンパイル時間 | 831 ms |
コンパイル使用メモリ | 75,596 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-12 11:04:16 |
合計ジャッジ時間 | 1,733 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 23 WA * 4 |
ソースコード
#include <iostream> #include <math.h> #include <string> #include <algorithm> #include <sstream> #include <iomanip> typedef long long ll; #define MIN(x, y) (x < y ? x : y) #define MAX(x, y) (x > y ? x : y) using namespace std; int main(){ ll A, B; cin >> A >> B; if(abs(A) > 10 && abs(B) > 10 && A % 10 == 0 && B % 10 == 0){ cout << A * B / 10 << endl; } else { ll ans = A * B; if(ans > 99999999 || ans < -99999999){ cout << "E" << endl; } else { cout << ans << endl; } } }