in c++
Created on: December 13, 2025
Answered using GPT-5.2 Thinking by Chat01
Created on: December 13, 2025
Answered using GPT-5.2 Thinking by Chat01
pythonfrom PIL import Image import matplotlib.pyplot as plt, os, textwrap, numpy as np, re img1_path="/mnt/data/WhatsApp Image 2025-12-13 at 5.11.00 PM.jpeg" img2_path="/mnt/data/WhatsApp Image 2025-12-13 at 5.11.00 PM (1).jpeg" img1=Image.open(img1_path) img2=Image.open(img2_path) img1.size, img2.size ((1280, 963), (1280, 963))
pythonimport matplotlib.pyplot as plt plt.figure(figsize=(12,8)) plt.imshow(img1) plt.axis('off') plt.show()
pythonimport numpy as np arr=np.array(img1) # crop central upper area containing statement crop=img1.crop((200,150,1150,620)) plt.figure(figsize=(12,6)) plt.imshow(crop) plt.axis('off') plt.show()
pythoncrop2=img2.crop((200,350,1150,850)) plt.figure(figsize=(12,6)) plt.imshow(crop2) plt.axis('off') plt.show()
pythoncrop2b=img2.crop((120,250,800,650)) plt.figure(figsize=(12,6)) plt.imshow(crop2b) plt.axis('off') plt.show()
cpp#include <bits/stdc++.h> using namespace std; string Palindromic_Subsequence(string s) { if (s.empty()) return "-1"; // safety (though constraints usually say |s| >= 1) char mn = s[0]; for (char c : s) mn = min(mn, c); // smallest character return string(1, mn); // single char is always a palindrome subsequence } int main() { ios::sync_with_stdio(false); cin.tie(nullptr); string s; cin >> s; cout << Palindromic_Subsequence(s); return 0; }