QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#374275#3716. Simple Arithmeticucup-team1251AC ✓3ms3860kbC++20431b2024-04-02 13:19:152024-04-02 13:19:15

Judging History

你现在查看的是最新测评结果

  • [2024-04-02 13:19:15]
  • 评测
  • 测评结果:AC
  • 用时:3ms
  • 内存:3860kb
  • [2024-04-02 13:19:15]
  • 提交

answer

#include<bits/stdc++.h>
using namespace std;
 
#define ll long long
#define PII pair<ll, int>
const int N = 5e5 + 5;
const int M = 2e6 + 5;
const int mod = 1e9 + 7;

void solve()
{
	long double a, b;
	while (cin >> a >> b)
	{
		cout << fixed << setprecision(0) << floorl(a / b) << '\n';
	}
}

signed main()
{
	ios::sync_with_stdio(0);
	cin.tie(0);
	cout.tie(0);

	int t = 1;
	//cin >> t;
	while (t--)
	{
		solve();
	}

	return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 3ms
memory: 3860kb

input:

3 2
3 -2
-9223372036854775808 1
-9223372036854775808 -1
9223372036854775807 1
9223372036854775807 -1
-9223372036854775808 2
-9223372036854775808 -2
9223372036854775807 2
9223372036854775807 -2
-2076046199237518199 8895005889588087898
-3939164353449408 -1673591601308294572
236330652387008908 24746725...

output:

1
-2
-9223372036854775808
9223372036854775808
9223372036854775807
-9223372036854775807
-4611686018427387904
4611686018427387904
4611686018427387903
-4611686018427387904
-1
0
0
-1
-1
2
-2
-1
0
-2
1
0
0
-2
1
0
-37
0
0
3
-1
8
-1
8
-1
-1
-2
0
0
2
8
-1
0
-1
-2
-1
-5
-7
-1
-2
-3
-1
1
0
-11
-1
2
-1
11
8
0
...

result:

ok 9875 tokens