結果
問題 |
No.722 100×100=1000
|
ユーザー |
![]() |
提出日時 | 2018-10-04 14:03:37 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 362 bytes |
コンパイル時間 | 377 ms |
コンパイル使用メモリ | 22,656 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-12 11:12:08 |
合計ジャッジ時間 | 1,166 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 18 WA * 9 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:5:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 5 | scanf("%ld %ld", &a, &b); | ~~~~~^~~~~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h> int main() { long a,b; scanf("%ld %ld", &a, &b); if ((a%10==0)&&(b%10==0)) { printf("%ld\n",a/10*b); return 0; } else { long ans=a*b; if ((ans<=-99999999)||(ans>=99999999)) { printf("E\n"); return 0; } printf("%ld\n",ans); return 0; } }