結果
問題 |
No.722 100×100=1000
|
ユーザー |
![]() |
提出日時 | 2018-08-03 22:24:51 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 406 bytes |
コンパイル時間 | 1,588 ms |
コンパイル使用メモリ | 166,416 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-12 10:33:38 |
合計ジャッジ時間 | 2,557 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 21 WA * 6 |
ソースコード
#include<bits/stdc++.h> using namespace std; using Int = long long; //INSERT ABOVE HERE signed main(){ Int a,b; cin>>a>>b; if(a==0||b==0) return cout<<0<<endl,0; Int c=abs(a),d=abs(b); while(c%10==0) c/=10; while(d%10==0) d/=10; if(c<10&&d<10) return cout<<a*b/10<<endl,0; Int L=-99999999,R=99999999; Int x=a*b; if(L<=x&&x<=R) cout<<x<<endl; else cout<<"E"<<endl; return 0; }