結果
| 問題 |
No.2414 2 KA 3 KA
|
| コンテスト | |
| ユーザー |
xuelei
|
| 提出日時 | 2023-08-12 13:35:14 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 601 bytes |
| コンパイル時間 | 1,644 ms |
| コンパイル使用メモリ | 164,564 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-23 03:25:27 |
| 合計ジャッジ時間 | 2,638 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 26 WA * 2 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define rep(i, a, b) for (int i = (int)(a); (i) < (int)(b); (i)++)
#define rrep(i, a, b) for (int i = (int)(b) - 1; (i) >= (int)(a); (i)--)
#define all(v) v.begin(), v.end()
typedef long long ll;
template <class T> using V = vector<T>;
template <class T> using VV = vector<V<T>>;
int main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
constexpr char endl = '\n';
int a,b,c;
int x,y;
cin >> a >> b >> c;
x = a*b + b*c + a*c;
y = a*b*c;
if (x > y) cout << 2 << endl;
else cout << 3 << endl;
return 0;
}
xuelei