結果
| 問題 |
No.2414 2 KA 3 KA
|
| コンテスト | |
| ユーザー |
bortik
|
| 提出日時 | 2023-08-16 01:57:36 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 430 bytes |
| コンパイル時間 | 1,639 ms |
| コンパイル使用メモリ | 190,940 KB |
| 最終ジャッジ日時 | 2025-02-16 08:37:00 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 28 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define rep(i, a, n) for (int i = (int)(a); i < (int)(n); i++)
#define rrep(i, n, a) for (int i = (int)(n); i >= (int)(a); i--)
void solve(){
int a,b,c; cin >> a >> b >> c;
int x = 2*(a*b+b*c+a*c);
int y = a*b*c;
if(x > y) cout << 2; else cout << 3;
}
int main(){
ios::sync_with_stdio(false);
cin.tie(0);
solve();
return 0;
}
bortik