結果
問題 |
No.722 100×100=1000
|
ユーザー |
![]() |
提出日時 | 2018-08-03 22:33:25 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 586 bytes |
コンパイル時間 | 840 ms |
コンパイル使用メモリ | 81,600 KB |
実行使用メモリ | 13,636 KB |
最終ジャッジ日時 | 2024-10-12 10:36:11 |
合計ジャッジ時間 | 4,483 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 WA * 1 |
other | AC * 7 WA * 2 TLE * 1 -- * 17 |
ソースコード
#include <iostream> #include <algorithm> #include <vector> #include <set> #include <map> #include <queue> #include <stack> #include <cstdio> #include <cstring> #include <math.h> using namespace std; typedef long long ll; typedef double D; typedef pair<int,int> P; #define M 1000000007 #define F first #define S second #define PB push_back ll a,b; int main(void){ cin>>a>>b; ll c=a,d=b; while(c%10==0)c/=10; while(d%10==0)d/=10; if(0<c&&c<10&&0<d&&d<10){ cout<<a*b/10<<endl; }else if(-99999999<=a*b&&a*b<=99999999)cout<<a*b<<endl; else cout<<"E\n"; }