2 条题解
-
7高梓晴 (ts2024stu008) LV 10 @ 2025-1-24 13:44:38
#include <bits/stdc++.h> #include <iostream> #include <iomanip> #include <stdio.h> #include <string.h> #include <cstring> #include <string> #include <cmath> #include <stack> #include <queue> using namespace std; int n,ans; signed main() { cin >> n; if(n==1) { cout << "ovo"; } else if(n<=4) { cout << 0; } else { int k=ceil(double(n-4)/2); cout << k; } return 0; } //ts2024stu008~~~~~~
庄力再吃下去就要吃吐了(doge)
(言归正传) 有标志认证,属三无产品,请大家放心食用
-
-12024-9-2 19:54:00@
#include<bits/stdc++.h> #define int long long using namespace std; const int N=1e6+5; int n; int ans; signed main(){ cin>>n; if(n==1)cout<<"ovo"; else if(n<=4)cout<<0; else{ int k=ceil(double(n-4)/2); cout<<k; } }
- 1
信息
- ID
- 3181
- 时间
- 1000ms
- 内存
- 256MiB
- 难度
- 5
- 标签
- (无)
- 递交数
- 22
- 已通过
- 15
- 上传者