Accepted
Code
#include <bits/stdc++.h>
using namespace std;
int main() {
// Input the cost per kilogram of potato
int X;
cin >> X;
// Calculate the total cost for 2 kilograms of potato
int total_cost = X * 2;
// Check if Sunny can buy 2 kilograms of potato
if (total_cost <= 100) {
cout << "YES\n";
} else {
cout << "NO\n";
}
return 0;
}
Information
- Submit By
- Type
- Submission
- Problem
- P1056 Grown up boy sunny
- Language
- C++17 (G++ 13.2.0)
- Submit At
- 2024-05-07 02:20:02
- Judged At
- 2024-11-11 03:31:16
- Judged By
- Score
- 100
- Total Time
- 2ms
- Peak Memory
- 540.0 KiB