結果
| 問題 |
No.722 100×100=1000
|
| コンテスト | |
| ユーザー |
hogeover30
|
| 提出日時 | 2018-09-06 08:03:59 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 52 ms / 2,000 ms |
| コード長 | 218 bytes |
| コンパイル時間 | 1,836 ms |
| コンパイル使用メモリ | 193,244 KB |
| 最終ジャッジ日時 | 2025-01-06 12:51:20 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 27 |
コンパイルメッセージ
main.cpp:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
1 | #import<bits/stdc++.h>
| ^~~~~~
main.cpp:2:21: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type]
2 | using namespace std;main(){long a,b,t,u;cin>>a>>b;for(t=abs(a);t>999&t%10<1;t/=10);for(u=abs(b);u>999&u%10<1;u/=10);a*=b;t/1000|t%100|!t|u/1000|u%100|!u?a/100000000?cout<<"E":cout<<a:cout<<a/10;}
| ^~~~
ソースコード
#import<bits/stdc++.h>
using namespace std;main(){long a,b,t,u;cin>>a>>b;for(t=abs(a);t>999&t%10<1;t/=10);for(u=abs(b);u>999&u%10<1;u/=10);a*=b;t/1000|t%100|!t|u/1000|u%100|!u?a/100000000?cout<<"E":cout<<a:cout<<a/10;}
hogeover30