結果
問題 |
No.722 100×100=1000
|
ユーザー |
|
提出日時 | 2018-08-04 19:40:03 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 417 bytes |
コンパイル時間 | 1,409 ms |
コンパイル使用メモリ | 160,132 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-10-12 10:50:59 |
合計ジャッジ時間 | 2,327 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 15 WA * 12 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { int a, b; cin >> a >> b; long long t = 1LL * a * b; string s = to_string(abs(t)); if( s.size() > 1 ) s = s.substr(2); cerr << t << endl << s << endl; bool f = false; for( auto c : s ) f |= (c != '0'); if( !f ) cout << t / 10; else if( t < 1e8 ) cout << t; else cout << "E"; cout << endl; return 0; }