結果
問題 |
No.722 100×100=1000
|
ユーザー |
|
提出日時 | 2019-01-02 23:47:32 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 345 bytes |
コンパイル時間 | 1,568 ms |
コンパイル使用メモリ | 167,128 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-10-12 11:19:07 |
合計ジャッジ時間 | 2,587 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 22 WA * 5 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); long long a, b; cin >> a >> b; if(a % 100 == 0 && b % 100 == 0) { cout << a * b / 10 << endl; } else { long long c = a * b; if(abs(c) >= 99999999) { cout << "E" << endl; } else { cout << c << endl; } } return 0; }