Yo`nalishlar
Hozirda online

Statistika

Masalalar soni: 884

Foydalanuvchilar soni: 6002

Jo'natishlar soni: 526557

Muhokama yozuvlari: 3131

Yangiliklar soni: 89

Yangiliklar izohlari: 1055

So'ngi izohlar

1. 1. Kripton , , #233. Kasr

Bu masalada shunchaki kattaroq toifalar ishlatish kerak

2. 3. Botirov Nodirjon, , #393. Klaviatura

#include <iostream>
#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef long double ld;
int main()
{
int n;
cin>>n;
string a;
char b;
int m;;
string l[5],r[5];
l[1]="qwertyuiop[]"; r[1]="][poiuytrewq";
l[2]="asdfghjkl;'"; r[2]="';lkjhgfdsa";
l[3]="zxcvbnm,./"; r[3]="/.,mnbvcxz";
string s;
for(int i=0; i<n; i++){
cin>>a;
if(a!="Space"){
cin>>b>>m;
int k=((int)a[0]-48);
if(b=='L'){
string tmp=l[k];
s+=tmp[m-1];
}
if(b=='R'){
string tmp=r[k];
s+=tmp[m-1];
}
}
else{
s+=' ';
}
}
cout<<s;
return 0;
}

3. 8. Botirov Nodirjon, , #696. Soat

#include <stdio.h>
#include <iostream>
#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
int main() {
string q,d;
cin>>q;
ll a=((int)q[0]-48)*10+((int)q[1]-48);
ll b=((int)q[3]-48)*10+((int)q[4]-48);
if(a>=12){
a=a-12;
}
double s;
s=abs(0.5*(60.*a-11.*b));
if(s>=180.){
s=s-360.;
}
cout<<setprecision(2)<<fixed<<abs(s);

return 0;
}

Muhokamada qatnashish uchun dastlab tizimga kiring yoki ro`yxatdan o`ting!