結果
問題 |
No.722 100×100=1000
|
ユーザー |
|
提出日時 | 2018-08-04 19:48:27 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 473 bytes |
コンパイル時間 | 1,931 ms |
コンパイル使用メモリ | 159,996 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-12 10:51:05 |
合計ジャッジ時間 | 2,279 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 3 |
other | AC * 19 WA * 8 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { int a[2]; cin >> a[0] >> a[1]; long long t = 1LL * a[0] * a[1]; int c = 0; for( int x : a ){ string s = to_string(abs(x)); if( s.size() > 1 ){ s = s.substr(2); for( auto x : s ) if( c += (x != '0') ) continue; } } if( c == 2 ) cout << t / 10; else if( t < 1e8 ) cout << t; else cout << "E"; cout << endl; return 0; }