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