結果

問題 No.8058 M + D Problem
ユーザー FSM
提出日時 2020-04-01 22:22:21
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 172 bytes
コンパイル時間 1,466 ms
コンパイル使用メモリ 163,784 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-06-27 11:32:07
合計ジャッジ時間 2,650 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 1 WA * 14
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp: In function 'int main()':
main.cpp:7:20: warning: 'b' may be used uninitialized [-Wmaybe-uninitialized]
    7 |         if (a == 4 && b == 1)cout << 1;
      |             ~~~~~~~^~~~~~~~~
main.cpp:5:16: note: 'b' was declared here
    5 |         int a, b;
      |                ^

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
constexpr int mod = 1000000007;
int main() {
	int a, b;
	cin >> a, b;
	if (a == 4 && b == 1)cout << 1;
	else cout << a + b;

}
0