結果
問題 |
No.722 100×100=1000
|
ユーザー |
![]() |
提出日時 | 2018-09-06 08:55:30 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 22 ms / 2,000 ms |
コード長 | 174 bytes |
コンパイル時間 | 650 ms |
コンパイル使用メモリ | 67,828 KB |
最終ジャッジ日時 | 2025-01-06 12:51:32 |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 27 |
コンパイルメッセージ
main.cpp:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 1 | #import<iostream> | ^~~~~~ main.cpp:3:1: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type] 3 | main(){long a,b,t,m=1e8;std::cin>>a>>b;t=F(a)|F(b);printf(t&&a*b/m?"E":"%lld",a*b/(t?1:10));} | ^~~~ main.cpp: In function ‘int main()’: main.cpp:3:76: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 2 has type ‘long int’ [-Wformat=] 3 | main(){long a,b,t,m=1e8;std::cin>>a>>b;t=F(a)|F(b);printf(t&&a*b/m?"E":"%lld",a*b/(t?1:10));} | ~~~^ ~~~~~~~~~~~~ | | | | | long int | long long int | %ld
ソースコード
#import<iostream> #define F(a)({for(t=a;t/1000&&t%10<1;t/=10);t/1000|t%100|!t;}) main(){long a,b,t,m=1e8;std::cin>>a>>b;t=F(a)|F(b);printf(t&&a*b/m?"E":"%lld",a*b/(t?1:10));}