| Алгоритмический язык |
Паскаль |
алг
нач
цел s, t
ввод s
ввод t
если не (s >= 2 и t < 5)
то вывод "YES"
иначе вывод "NO"
все
кон |
var s, t: integer;
begin
readln(s);
readln(t);
if not((s >= 2) and (t < 5))
then writeln('YES')
else writeln('NO')
end. |
| Бейсик |
Python |
DIM s, t AS INTEGER
INPUT s
INPUT t
IF NOT (s >= 2 AND t < 5) THEN
PRINT "YES"
ELSE
PRINT "NO"
ENDIF |
s = int(input())
t = int(input())
if not ((s >= 2) and (t < 5)):
print("YES")
else:
print("NO") |
| C++ |
#include <iostream>
using namespace std;
int main(){
int s, t;
cin >> s;
cin >> t;
if !((s >= 2) && (t < 5))
cout << "YES" << endl;
else
cout << "NO" << endl;
return 0;
} |