跳到正文

题解

题解:P15339 [GCPC 2025] Labour Laws

Shirleynie约 1 分钟
原文
文章信息与版本

文章信息

收录
2026年2月17日
更新
2026年2月18日
篇幅
约 1 分钟
题目
P15339

版本

  1. v1当前

P15339 Labour Laws 题解

思路

水红。 分类讨论即可。

代码

AC Code
C++
#include<bits/stdc++.h>
using namespace std;
int main(){
    int t;
    cin>>t;
    if(t>645)cout<<t-600;
    else if(t>585)cout<<45;
    else if(t>570)cout<<t-540;
    else if(t>390)cout<<30;
    else if(t>360)cout<<t-360;
    else cout<<0;
    return 0;
}
原文