跳到正文

题解

题解:AT_joi2025_yo1a_a 鉛筆 2 (Pencils 2)

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

文章信息

收录
2025年12月14日
更新
2025年12月17日
篇幅
约 1 分钟

版本

  1. v1当前

可爱的小朋友们,你们知不知道一个数除以 55 要怎么算啊?那你们知不知道当你剩余的钱买不了一支笔的时候,你就买不了这支笔啊?那你们知不知道 int 可以直接保留整数啊?

C++
#include<bits/stdc++.h>
#define int long long
#define PII pair<int,int>
#define endl "\n"
using namespace std;
const int N=1e6+5;
const int INF=0x3f3f3f3f;
const double EPS=1e-6;
const int mod=1e9+7;
void solve(){
	int x;
	cin>>x;
	x/=5;
	cout<<x;
}
signed main(){
	ios::sync_with_stdio(0);
	cin.tie(0),cout.tie(0);
	int T=1;
//	cin>>T;
	while(T--)solve();
	return 0;
}
原文