diff --git a/q1.cpp b/q1.cpp new file mode 100644 index 0000000..388bfa0 --- /dev/null +++ b/q1.cpp @@ -0,0 +1,30 @@ +-#include +#include +using namespace std; + +int main(){ + string name; + cin>>name; + int length=name.length(); + int n; + int x; + cin>>n>>x; + string shift=""; + for(int i=0;i=0;i--){ + char temp; + temp=shift[i]; + shift[i]=shift[i-1]; + shift[i-1]=temp; + } + } + cout< +using namespace std; +int main(){ + int m; + cin>>m; + for(int i=0;i>a>>b>>c>>x; + int ans=a*x+b*x+c; + int arr[10]={6,2,5,5,4,5,6,3,7,6}; + int n=0; + while(ans>0){ + int temp=ans%10; + for(int i=0;i<10;i++){ + if(i==temp){ + n+=arr[i]; + } + } + ans=ans/10; + } + cout<