結果
問題 |
No.722 100×100=1000
|
ユーザー |
|
提出日時 | 2018-09-08 16:24:31 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 536 bytes |
コンパイル時間 | 850 ms |
コンパイル使用メモリ | 66,304 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-12 11:08:16 |
合計ジャッジ時間 | 1,688 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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) cout<<0<<"\n"; return 0; ll X,Y = abs(x),abs(y); bool by = (Y<10) ? false:true; bool bx = (X<10) ? false:true; if(Y>=10) by = true; 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; }