找回密码
 中文实名注册
搜索
查看: 317|回复: 30

请高人2

[复制链接]

21

主题

111

回帖

5230

积分

论坛元老

积分
5230
发表于 2025-8-9 22:21:43 | 显示全部楼层 |阅读模式
#include <bits/stdc++.h>
using namespace std;
int main() {
int a,b,c,d;
    cin >> a >> b >> c >> d;
    if (b + d >= 60){
        cout << c - a + ((b + d) / 60) << " " << (b + d) % 60 <<endl;
    }else {
        cout << c - a << " " << b + d <<endl;
    }
return 0;
}

回复

使用道具 举报

21

主题

111

回帖

5230

积分

论坛元老

积分
5230
 楼主| 发表于 2025-8-9 23:17:08 | 显示全部楼层
#include <bits/stdc++.h>
using namespace std;
int main() {
int n;
    cin >> n;
    double f;
    if (n = 1) {
f = n * 5.0;
    }else if (5 >= n >= 2){
f = n * 4.5;
    }else if (10 >= n >= 6){
f = n * 4.0;
    }else {
f = n * 3.5;
    }cout << fixed << setprecision(1) << f << endl;
return 0;
}

点评

out  发表于 2025-8-16 17:25
回复

使用道具 举报

21

主题

111

回帖

5230

积分

论坛元老

积分
5230
 楼主| 发表于 2025-8-12 19:50:32 | 显示全部楼层
#include <bits/stdc++.h>
using namespace std;
int main() {
int a,b,c;
    cin >> a >> b >> c;
    if (185 >= c >= 165 || 80 >= b >= 50 || 19 >= a >= 16) {
    cout << "N" << endl;
    }else {
    cout << "Y" << endl;
    }
return 0;
}

点评

out  发表于 2025-8-16 17:27
回复

使用道具 举报

21

主题

111

回帖

5230

积分

论坛元老

积分
5230
 楼主| 发表于 2025-8-12 19:53:42 | 显示全部楼层
#include <bits/stdc++.h>
using namespace std;
int main() {
int n;
    cin >> n;
    if (n == 1 && n == 3 && n == 5 && n == 6) {
    cout << "meike" << endl;
    }else {
    cout << "youke" << endl;
    }
return 0;
}

点评

out  发表于 2025-8-17 15:49
回复

使用道具 举报

21

主题

111

回帖

5230

积分

论坛元老

积分
5230
 楼主| 发表于 2025-8-12 20:36:20 | 显示全部楼层
#include <bits/stdc++.h>
using namespace std;
int main() {
int n;
    cin >> n;
    if (n % 10 == 5 && n / 10 % 10 == 5 && n / 100 % 10 == 5 && n / 1000 % 10 == 5 && n / 10000 % 10 == 5) {
    cout << n << endl;
    }else {
    cout << n % 10 + n / 10 % 10 + n / 100 % 10 + n / 1000 % 10 + n / 10000 % 10  << endl;
    }
return 0;
}

点评

out  发表于 2025-8-17 15:49
连续四个蓝色的“×”了 [○・`Д´・ ○]  发表于 2025-8-12 20:37
回复

使用道具 举报

21

主题

111

回帖

5230

积分

论坛元老

积分
5230
 楼主| 发表于 2025-8-12 21:20:46 | 显示全部楼层
#include <bits/stdc++.h>
using namespace std;
int main() {
    int n;
    cin >> n;
if (n % 2 == 0 || n / 100 % 10 == 0 || n / 10 % 10 != 0) {
    cout << "Yes" << endl;
}else {
    cout << "No" << endl;
}
return 0;
}

点评

out  发表于 2025-8-17 15:50
这次是红色的“×”了  发表于 2025-8-12 21:21
回复

使用道具 举报

21

主题

111

回帖

5230

积分

论坛元老

积分
5230
 楼主| 发表于 2025-8-12 22:03:29 | 显示全部楼层
#include <bits/stdc++.h>
using namespace std;
int main() {
    double n;
    cin >> n;
    if (n <= 10) {
    cout << fixed << setprecision(2) << n * 1.5 << endl;
    }else {
    cout << fixed << setprecision(2) << n * 2.5 << endl;
    }
return 0;
}

点评

out!  发表于 2025-8-17 15:50
蓝色“×”+1  发表于 2025-8-12 22:04
回复

使用道具 举报

21

主题

111

回帖

5230

积分

论坛元老

积分
5230
 楼主| 发表于 2025-8-12 23:02:07 | 显示全部楼层
#include <bits/stdc++.h>
using namespace std;
int main() {
    int n;
    cin >> n;
    cout << fixed << setprecision(2) << (n / 10 % 10 + n / 100 % 10) / (n % 10 + n / 10 % 10) << endl;
    }
return 0;
}

点评

out  发表于 2025-8-17 15:54
黄色“×”  发表于 2025-8-12 23:02
回复

使用道具 举报

21

主题

111

回帖

5230

积分

论坛元老

积分
5230
 楼主| 发表于 2025-8-12 23:05:02 | 显示全部楼层
#include <bits/stdc++.h>
using namespace std;
int main() {
    int n;
    cin >> n;
    cout << fixed << setprecision(2) << n / 10 % 10 / n % 10 << endl;
    }
return 0;
}

点评

out  发表于 2025-8-17 16:00
黄色+1  发表于 2025-8-12 23:05
回复

使用道具 举报

21

主题

111

回帖

5230

积分

论坛元老

积分
5230
 楼主| 发表于 2025-8-14 20:13:07 | 显示全部楼层
#include <bits/stdc++.h>
using namespace std;
int main() {
for (int i = 100; i < 101; i = i - 1){
    cout << i << " ";
}
return 0;
}

点评

out  发表于 2025-8-17 16:01
"Time Limit Exceeded"  发表于 2025-8-14 20:14
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 中文实名注册

本版积分规则

快速回复 返回顶部 返回列表