結果
| 問題 |
No.722 100×100=1000
|
| コンテスト | |
| ユーザー |
chacoder1
|
| 提出日時 | 2021-01-17 21:12:00 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 273 bytes |
| コンパイル時間 | 2,112 ms |
| コンパイル使用メモリ | 190,892 KB |
| 最終ジャッジ日時 | 2025-01-18 01:57:13 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 4 |
| other | AC * 3 WA * 24 |
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:6:7: warning: ‘a’ is used uninitialized [-Wuninitialized]
6 | if(a%100==0 && b%100==0){
| ~^~~~
main.cpp:5:13: note: ‘a’ was declared here
5 | long long a,b;
| ^
main.cpp:6:19: warning: ‘b’ is used uninitialized [-Wuninitialized]
6 | if(a%100==0 && b%100==0){
| ~^~~~
main.cpp:5:15: note: ‘b’ was declared here
5 | long long a,b;
| ^
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main(){
long long a,b;
if(a%100==0 && b%100==0){
cout<<setprecision(18)<<a*b/10<<endl;
return 0;
}
if(a*b<-99999999 || a*b>99999999){
cout<<"E"<<endl;
}
else{
cout<<a*b<<endl;
}
return 0;
}
chacoder1