結果
| 問題 |
No.722 100×100=1000
|
| コンテスト | |
| ユーザー |
hogeover30
|
| 提出日時 | 2018-09-06 09:09:31 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 167 bytes |
| コンパイル時間 | 621 ms |
| コンパイル使用メモリ | 67,300 KB |
| 最終ジャッジ日時 | 2025-01-06 12:51:39 |
|
ジャッジサーバーID (参考情報) |
judge4 / 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:1: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type]
3 | main(){long a,b,t,m=1e8;t=F(a)|F(b);a*=b;printf(t&&a/m?"E":"%lld",t?a:a/10);}
| ^~~~
main.cpp: In function ‘int main()’:
main.cpp:3:64: 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;t=F(a)|F(b);a*=b;printf(t&&a/m?"E":"%lld",t?a:a/10);}
| ~~~^ ~~~~~~~~
| | |
| | long int
| long long int
| %ld
ソースコード
#import<iostream>
#define F(a)({std::cin>>a;for(t=abs(a);t&&t%10<1;t/=10);!t|t>9|a%100;})
main(){long a,b,t,m=1e8;t=F(a)|F(b);a*=b;printf(t&&a/m?"E":"%lld",t?a:a/10);}
hogeover30