結果
| 問題 |
No.722 100×100=1000
|
| コンテスト | |
| ユーザー |
ngtkana
|
| 提出日時 | 2020-02-26 23:55:44 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 391 bytes |
| コンパイル時間 | 1,677 ms |
| コンパイル使用メモリ | 166,552 KB |
| 実行使用メモリ | 13,632 KB |
| 最終ジャッジ日時 | 2024-10-13 15:38:03 |
| 合計ジャッジ時間 | 5,307 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 8 WA * 1 TLE * 1 -- * 17 |
ソースコード
#include<bits/stdc++.h>
int main(){
long long a,b;std::cin>>a>>b;
long long ans=a*b;
int x=0,y=0;
while(a%10==0)a/=10,x++;
while(b%10==0)b/=10,y++;
if(a<10&&b<10&&1<x&&1<y){
std::cout<<ans/10<<std::endl;
}else{
if(1e8<=std::abs(ans)){
std::cout<<"E"<<std::endl;
}else{
std::cout<<ans<<std::endl;
}
}
}
ngtkana