結果
問題 |
No.722 100×100=1000
|
ユーザー |
![]() |
提出日時 | 2018-10-04 13:45:54 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 360 bytes |
コンパイル時間 | 179 ms |
コンパイル使用メモリ | 22,528 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-10-12 11:12:06 |
合計ジャッジ時間 | 1,004 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 20 WA * 7 |
コンパイルメッセージ
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; } }