結果

問題 No.722 100×100=1000
ユーザー takayuki
提出日時 2018-08-03 23:11:53
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 465 bytes
コンパイル時間 657 ms
コンパイル使用メモリ 80,172 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-10-12 10:43:25
合計ジャッジ時間 1,625 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 20 WA * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<vector>
#include<stdlib.h>
#include<time.h>
#include<math.h>
#include<string.h>
#include<algorithm>
#include<queue>
#include<map>
#include<iomanip>
using namespace std;

int main(void){
 long long int A,B;
 long long int mul=0;
 int error=0;
 cin>>A>>B;
 if(A%10==0 && B%10==0){
  mul=A*B/10;
 }
 else{
  mul=A*B;
  if(mul<-99999999 || mul>99999999)error=1;
 }
 
 if(error==0)std::cout<<mul<<std::endl;
 else std::cout<<"E"<<std::endl;
}
0