@@ -0,0 +1,11 @@
+#include<bits/stdc++.h>
+using namespace std;
+int main(){
+ int a;
+ cin>>a;
+ if(a%4==0&&a%100!=0||a%400==0)
+ cout<<"yes";
+ else
+ cout<<"no";
+ return 0;
+}
@@ -0,0 +1,20 @@
+
+int main() {
+ int n;
+ cin >> n;
+ bool flag = true;
+ for (int i = 2; i <= n - 1; i++)
+ if (n % i == 0) {
+ flag = false;
+ break;
+ }
+ if (flag) {
+ cout << "prime" << endl;
+ } else {
+ cout << "not prime" << endl;
@@ -0,0 +1,15 @@
+ int Max = INT_MIN;
+ for (int i = 0; i < 10; i++) {
+ int t;
+ cin >> t;
+ Max = max(t, Max);
+ cout << Max << endl;
@@ -0,0 +1,9 @@
+ int a[10];
+ for(int i=0;i<10;i++)cin>>a[i];
+ cout<<*max_element(a,a+10)<<endl;
@@ -0,0 +1,14 @@
+ int a, b, c;
+ cin >> a >> b >> c;
+ if (a > b)swap(a, b);
+ if (b > c)swap(b, c);
+ cout << a << " " << b << " " << c << endl;
@@ -0,0 +1,12 @@
+ int a[3];
+ cin >> a[0] >> a[1] >> a[2];
+ sort(a, a + 3);
+ cout << a[0] << " " << a[1] << " " << a[2] << endl;
+ if (n % 15 == 0)
+ cout << "can" << endl;
+ cout << "cannot" << endl;
@@ -0,0 +1,17 @@
+ double a,b,c;
+ cin>>a>>b>>c;
+ double dt=b*b-4*a*c;
+ if(dt<0){
+ cout<<"no answer";
+ }else{
+ double x1=(-b-sqrt(dt))/(2*a);
+ double x2=(-b+sqrt(dt))/(2*a);
+ cout<<fixed<<setprecision(4)<<x1<<" "<<x2<<endl;
@@ -0,0 +1,13 @@
+#include <bits/stdc++.h>
+ double F;
+ cin >> F;
+ cout << "F=" << fixed << F << endl;
+ double C = (F - 32) * 5 / 9;
+ cout << "C=" << fixed << C << endl;