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
#include
#include
using namespace std; int main() { int a, b, c; cin >> a >> b >> c; int niza[3]; niza[0] = a; niza[1] = b; niza[2] = c; sort(niza, niza + 3); a = niza[0]; b = niza[1]; c = niza[2]; int max_a = a, max_b = b, max_c = c; if(a >= 5) { max_a = 5; } if(b >= 5) { max_b = 5; } if(c >= 5) { max_c = 5; } int sum = max_a + max_b + max_c; if(a + sum - max_a >= b - max_b or a + sum - max_a >= c - max_c or b + sum - max_b >= c - max_c) { cout << "DA" << endl; } else { cout << "NE" << endl; } 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)