結果

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

ソースコード

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 || A<10) && (B%10==0 || B<10)){
  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