| Автор |
Сообщение |
22.05.2026 11:05:55
Тема: 2 - "Количество букв и цифр" 45575
|
Михаил Долинский
Темы: 2184
Сообщений: 52607
Мой профиль
|
char __bits(8) str[128];
int __out __bits(8) res = 0;
void main() {
int resC = 0;
int resD = 0;
for (int i = 0; i != '#'; i++) {
if (0 < str[i] < 9) {
resD++;
}
if ('a' < str[i] < 'z') {
resC++;
}
}
res = resC + resD;
}
|
22.05.2026 11:06:15
Тема: Re:2 - "Количество букв и цифр" 45575
|
Михаил Долинский
Темы: 2184
Сообщений: 52607
Мой профиль
|
char __bits(8) str[256];
int __out __bits(8) res = 0;
void main() {
int resDigit = 0;
int resChar = 0;
for (int i = 0; i != '#'; i++) {
if (0 < str[i] < 9) {
resDigit++;
}
if ('a' < str[i] < 'z') {
resChar++;
}
}
res = resDigit + resChar;
}
|
22.05.2026 11:06:48
Тема: Re:2 - "Количество букв и цифр" 45575
|
Михаил Долинский
Темы: 2184
Сообщений: 52607
Мой профиль
|
char str[128];
int __out __bits(8) res;
void main()
{
int i = 0;
int __bits(8) k = 0;
for (i=0; str[i]!='#'; i++) {
if (str[i] > '0' && str[i] < '9'){
k++;
}
if (str[i] > 'a' && str[i] < 'z'){
k++;
}
}
res = k;
}
|
22.05.2026 11:06:59
Тема: Re:2 - "Количество букв и цифр" 45575
|
Михаил Долинский
Темы: 2184
Сообщений: 52607
Мой профиль
|
char str[128];
int __out __bits(8) res;
void main()
{
int i = 0;
int __bits(8) k = 0;
for (i=0; in_str[i]!='#'; i++) {
if (in_str[i] > '0' && in_str[i] < '9'){
k++;
}
if (in_str[i] > 'a' && in_str[i] < 'z'){
k++;
}
}
res = k;
}
|
22.05.2026 11:07:08
Тема: Re:2 - "Количество букв и цифр" 45575
|
Михаил Долинский
Темы: 2184
Сообщений: 52607
Мой профиль
|
char in_str[128];
int __out __bits(8) res;
void main()
{
int i = 0;
int __bits(8) k = 0;
for (i=0; in_str[i]!='#'; i++) {
if (in_str[i] > '0' && in_str[i] < '9'){
k++;
}
if (in_str[i] > 'a' && in_str[i] < 'z'){
k++;
}
}
res = k;
}
|
22.05.2026 11:07:24
Тема: Re:2 - "Количество букв и цифр" 45575
|
Михаил Долинский
Темы: 2184
Сообщений: 52607
Мой профиль
|
char in_str[128];
int __out __bits(8) res;
void main()
{
int i = 0;
int __bits(8) k = 0;
for (int i=0; in_str[i]!='#'; i++) {
if ((in_str[i] > '0' && in_str[i] < '9'){
k++;
}
if (in_str[i] > 'a' && in_str[i] < 'z'){
k++;
}
}
res = k;
}
|
22.05.2026 11:07:42
Тема: Re:2 - "Количество букв и цифр" 45575
|
Михаил Долинский
Темы: 2184
Сообщений: 52607
Мой профиль
|
char in_str[100];
int __out __bits(8) res;
void main()
{
int i = 0;
int k = 0;
while(in_str[i]!='#'){
if ((in_str[i] > '0' && in_str[i] < '9') || ((in_str[i] > 'a' && in_str[i] < 'z')){
k++;
}
}
res = k;
}
|
22.05.2026 11:07:54
Тема: Re:2 - "Количество букв и цифр" 45575
|
Михаил Долинский
Темы: 2184
Сообщений: 52607
Мой профиль
|
char str[128]
unsigned __out __bits(8) res;
void main(){
int __bits(16) cnt = 0;
for(int i = 0; str[i] != '#';i++){
char c = str[i];
if((c>= '0' && c <= '9') || (c >= 'a' && c <= 'z')){
cnt++;
}
}
res = cnt;
}
|
22.05.2026 11:08:08
Тема: Re:2 - "Количество букв и цифр" 45575
|
Михаил Долинский
Темы: 2184
Сообщений: 52607
Мой профиль
|
char str[128];
unsigned __out __bits(16) res;
void main()
{
int __bits(16) cnt = 0;
for (int i = 0; str[i] != '#'; i++)
{
char c = str[i];
if ((c >= '0' && c <= '9') || (c >= 'a' && c <= 'z'))
{
cnt++;
}
}
res = cnt;
}
|
22.05.2026 11:08:17
Тема: Re:2 - "Количество букв и цифр" 45575
|
Михаил Долинский
Темы: 2184
Сообщений: 52607
Мой профиль
|
char str[128];
unsigned out bits(16) res;
void main()
{
int __bits(16) cnt = 0;
for (int i = 0; str[i] != '#'; i++)
{
char c = str[i];
if ((c >= '0' && c <= '9') || (c >= 'a' && c <= 'z'))
{
cnt++;
}
}
res = cnt;
}
|
22.05.2026 11:08:28
Тема: Re:2 - "Количество букв и цифр" 45575
|
Михаил Долинский
Темы: 2184
Сообщений: 52607
Мой профиль
|
char str[128];
unsigned __out __bits(16) res;
void main()
{
int __bits(16) cnt = 0;
for (int i = 0; str[i] != '#'; i++)
{
char c = str[i];
if ((c >= '0' && c <= '9') || (c >= 'a' && c <= 'z'))
{
cnt++;
}
}
res = cnt;
}
|
22.05.2026 11:08:46
Тема: Re:2 - "Количество букв и цифр" 45575
|
Михаил Долинский
Темы: 2184
Сообщений: 52607
Мой профиль
|
char in_str[128];
unsigned __out __bits(16) res;
void main()
{
int __bits(16) cnt = 0;
for (int i = 0; in_str[i] != '#'; i++)
{
char c = in_str[i];
if ((c >= '0' && c <= '9') || (c >= 'a' && c <= 'z'))
{
cnt++;
}
}
res = cnt;
}
|
22.05.2026 11:08:57
Тема: Re:2 - "Количество букв и цифр" 45575
|
Михаил Долинский
Темы: 2184
Сообщений: 52607
Мой профиль
|
char IN_str[128];
unsigned __out __bits(16) res;
void main()
{
int __bits(16) cnt = 0;
for (int i = 0; IN_STR[i] != '#'; i++)
{
char c = IN_STR[i];
if ((c >= '0' && c <= '9') || (c >= 'a' && c <= 'z'))
{
cnt++;
}
}
RES = cnt;
}
|
22.05.2026 11:09:07
Тема: Re:2 - "Количество букв и цифр" 45575
|
Михаил Долинский
Темы: 2184
Сообщений: 52607
Мой профиль
|
char IN_STR[128];
unsigned __out __bits(16) RES;
void main()
{
int __bits(16) cnt = 0;
for (int i = 0; IN_STR[i] != '#'; i++)
{
char c = IN_STR[i];
if ((c >= '0' && c <= '9') || (c >= 'a' && c <= 'z'))
{
cnt++;
}
}
RES = cnt;
}
|
22.05.2026 11:09:22
Тема: Re:2 - "Количество букв и цифр" 45575
|
Михаил Долинский
Темы: 2184
Сообщений: 52607
Мой профиль
|
char str[128];
int __out __bits(8) res;
void main()
{
int __bits(16) cnt = 0;
for (int i = 0; str[i] != '#'; i++) {
if ((str[i] >= '1' && str[i] <= '9') || (str[i] >= 'a' && str[i] <= 'z')) {
cnt++;
}
}
res = cnt;
}
|
|
|