結果
| 問題 |
No.722 100×100=1000
|
| コンテスト | |
| ユーザー |
takayuki
|
| 提出日時 | 2018-08-03 23:08:29 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 485 bytes |
| コンパイル時間 | 704 ms |
| コンパイル使用メモリ | 81,596 KB |
| 実行使用メモリ | 6,824 KB |
| 最終ジャッジ日時 | 2024-10-12 10:42:40 |
| 合計ジャッジ時間 | 1,636 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 20 WA * 7 |
ソースコード
#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){
int A,B;
long long int mul=0;
int error=0;
cin>>A>>B;
if(A%10==0 && B%10==0){
mul=(long long int)A*B/10;
}
else{
mul=(long long int)A*B;
if(mul<-99999999 || mul>99999999)error=1;
}
if(error==0)std::cout<<mul<<std::endl;
else std::cout<<"E"<<std::endl;
}
takayuki