結果
問題 |
No.722 100×100=1000
|
ユーザー |
|
提出日時 | 2018-09-08 16:38:48 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 514 bytes |
コンパイル時間 | 680 ms |
コンパイル使用メモリ | 66,476 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-10-12 11:07:50 |
合計ジャッジ時間 | 1,788 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 4 |
other | AC * 3 WA * 24 |
ソースコード
#include <iostream> #include <cmath> using namespace std; #define ll long long const int LB = -99999999; const int UB = 99999999; int main() { ll x,y; cin >> x >> y; if(x==0 || y==0) return cout<<0<<"\n", 0; ll X=abs(x),Y=abs(y); bool bx = (X>10) ? true : false; bool by = (Y>10) ? true : false; while(X%10==0) X/10; while(Y%10==0) Y/10; ll res = x*y; if(bx && by && X<10 && Y<10 ) cout<<res/10<<"\n"; return 0; if(LB<=res && res<=UB) cout<<res<<"\n"; else cout<<'E'<<"\n"; return 0; }