Archives
Trending
Support
Login
clear text
XML
Django
JavaScript
MATLAB
C
C++
C#
Python
SQL
Shell
Bash
Markdown
YAML
JSON
HTML
CSS
PHP
Java
Ruby
Go
Rust
Swift
Kotlin
Arduino
TypeScript
Perl
Autohotkey
Lua
SQF
R
Scala
Haskell
Groovy
Dart
Clojure
VB.NET
Objective-C
PowerShell
Bash
CoffeeScript
Verilog
////////////////////////////////////////// PROBLEM - A ////////////////////////////////////////// #include
#define ll long long using namespace std; void solve() { int n, m; cin >> n >> m; if (n == m) cout << "Yes"; else cout << "No"; } int main() { int t = 1; // cin >> t; for (int i = 1; i <= t; i++) { solve(); } return 0; } ////////////////////////////////////////// PROBLEM - B ////////////////////////////////////////// #include
#define ll long long using namespace std; void solve() { int n, r; cin >> n >> r; if (n > 10) cout << r; else cout << r + 100 * (10 - n); } int main() { int t = 1; // cin >> t; for (int i = 1; i <= t; i++) { solve(); } return 0; } ////////////////////////////////////////// PROBLEM - C ////////////////////////////////////////// #include
#define ll long long using namespace std; void solve() { ll a, b, c, d; cin >> a >> b >> c >> d; if (b * log(a) > d * log(c)) cout << "YES"; else cout << "NO"; } int main() { int t = 1; // cin >> t; for (int i = 1; i <= t; i++) { solve(); } return 0; } ////////////////////////////////////////// PROBLEM - D ////////////////////////////////////////// #include
#define ll long long using namespace std; void solve() { int x; cin >> x; if (x < -4) cout << x + 5; else if (x <= 7) cout << x * x - 3 * x; else cout << x * x * x + 2 * x; } int main() { int t = 1; // cin >> t; for (int i = 1; i <= t; i++) { solve(); } return 0; } ////////////////////////////////////////// PROBLEM - E ////////////////////////////////////////// #include
#define ll long long using namespace std; void solve() { int x, y, z; cin >> x >> y >> z; if (x + y > z && x + z > y && y + z > x) cout << "YES"; else cout << "NO"; } int main() { int t = 1; // cin >> t; for (int i = 1; i <= t; i++) { solve(); } return 0; } ////////////////////////////////////////// PROBLEM - F ////////////////////////////////////////// #include
#define ll long long using namespace std; void solve() { int n; cin >> n; cout << n * (n + 1) / 2; } int main() { int t = 1; // cin >> t; for (int i = 1; i <= t; i++) { solve(); } return 0; }
Mark as private (unlisted)
for 30 minutes
for 6 hours
for 1 day
for 1 week
for 1 month
for 1 year
everlasting (like CCCP)