@@ -0,0 +1,12 @@
+#include <iostream>
+#include <iomanip>
+
+using namespace std;
+int main(int argc, char const *argv[]) {
+ for (double h; cin >> h;) {
+ cout << fixed << setprecision(1) << (h - 100) * 0.9 * 2 << endl;
+ }
+ return 0;
+}
@@ -0,0 +1,34 @@
+#include <vector>
+#include <algorithm>
+#include <cstdio>
+bool prime(long long n) {
+ if (n == 0 || n == 1)return 0;
+ for (long long i = 2; i * i <= n; i++) {
+ if (n % i == 0)return 0;
+ return 1;
+long long re(long long n) {
+ long long ret = 0;
+ while (n) {
+ ret = ret * 10 + n % 10;
+ n /= 10;
+ return ret;
+int main() {
+ long long n;
+ while (scanf("%lld", &n) != EOF) {
+ if (prime(re(n)))
+ printf("Y\n");
+ else printf("N\n");
@@ -0,0 +1,20 @@
+ int ah, am, as, bh, bm, bs, ch, cm, cs, sc;
+ for (; cin >> ah >> am >> as >> bh >> bm >> bs;) {
+ sc = 0;
+ cs = as + bs + sc;
+ sc = cs / 60;
+ cs %= 60;
+ cm = am + bm + sc;
+ sc = cm / 60;
+ cm %= 60;
+ ch = (ah + bh + sc) % 24;
+ cout << ch / 10 << ch % 10 << ":" << cm / 10 << cm % 10 << ":" << cs / 10
+ << cs % 10 << endl;
@@ -0,0 +1,15 @@
+#include<iostream>
+ for (int n; cin >> n;) {
+ if (n == 1)
+ cout << 1 << endl;
+ else if (n < 4 || n % 4 != 0)
+ cout << -1 << endl;
+ else
+ cout << (n / 4) + 1 << endl;
@@ -0,0 +1,27 @@
+ cout << "O" << endl;
+ else {
+ for (int i = 0; i < n; i++)
+ cout << "O";
+ cout << endl;
+ for (int i = 0; i < n - 2; i++) {
+ for (int j = 0; j < n - 2; j++)
+ cout << " ";
@@ -0,0 +1,14 @@
+#include <bits/stdc++.h>
+ int T, n;
+ for (cin >> T; T-- && cin >> n;) {
+ double d = fmod(n * log10(n), 1.0);
+ double t = pow(10, d);
+ cout << (int) t << endl;
+#include<bits/stdc++.h>
+ int n, m;
+ while (cin >> n >> m) {
+ cout << 1LL * n * (n + 1) * m * (m + 1) / 4 << endl;
@@ -0,0 +1,23 @@
+long long f(int n) {
+ if (n == 1 || n == 2)return 1;
+ return f(n - 1) + f(n - 2);
+ int s, mon, d;
+ while (cin >> d) {
+ if (d == 1)mon = 1;
+ for (s = 0, mon = 3;; mon++) {
+ s = f(mon - 1) + f(mon - 2);
+ if (s >= d)break;
+ cout << mon << endl;
@@ -0,0 +1,19 @@
+ char s[100] = "00";
+ while (cin >> (s + 2)) {
+ int k = strlen(s);
+ int w = k / 3;
+ int a, b, c;
+ sscanf(s + (k - w), "%d", &c);
+ s[k - w] = 0;
+ sscanf(s + (k - 2 * w), "%d", &b);
+ s[k - 2 * w] = 0;
+ sscanf(s, "%d", &a);
+ cout << a << " " << b << " " << c << endl;