結果
問題 |
No.722 100×100=1000
|
ユーザー |
![]() |
提出日時 | 2018-08-03 22:30:14 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 521 bytes |
コンパイル時間 | 597 ms |
コンパイル使用メモリ | 75,388 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-10-12 10:34:09 |
合計ジャッジ時間 | 1,585 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 22 WA * 5 |
ソースコード
#include<iostream> #include<cstdio> #include<cstdlib> #include<string> #include<algorithm> #include<cmath> #include<queue> #include<vector> #include<stack> using namespace std; #define REP(i,n) for(int i=0;(i)<(n);(i)++) #define ll long long #define int long long int N; int A, B; int ans; signed main() { cin >> A >> B; if (A % 100 == 0 && B % 100 == 0) { ans = A*B / 10; cout << ans << endl; return 0; } else ans = A*B; if (abs(ans) >= 1e8-1) cout << 'E' << endl; else cout << ans << endl; return 0; }