結果
問題 |
No.722 100×100=1000
|
ユーザー |
![]() |
提出日時 | 2018-08-03 22:33:38 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 532 bytes |
コンパイル時間 | 1,743 ms |
コンパイル使用メモリ | 194,028 KB |
最終ジャッジ日時 | 2025-01-06 12:12:53 |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 21 WA * 6 |
ソースコード
#include <bits/stdc++.h> using namespace std; using int64 = long long; int main() { int64 A, B; cin >> A >> B; int64 C = A, D = B; if(A == 0 || B == 0) { cout << 0 << endl; return 0; } int latte = 0, malta = 0; while(A % 10 == 0) { A /= 10; ++latte; } while(B % 10 == 0) { B /= 10; ++malta; } if(abs(A) <= 9 && abs(B) <= 9) { C *= D; C /= 10; cout << C << endl; } else { C *= D; if(llabs(C) <= 99999999) cout << C << endl; else cout << "E" << endl; } }