結果

問題 No.2624 Prediction by Average
ユーザー ぷらぷら
提出日時 2024-02-09 21:45:49
言語 C++17
(gcc 12.3.0 + boost 1.83.0)
結果
RE  
実行時間 -
コード長 930 bytes
コンパイル時間 3,608 ms
コンパイル使用メモリ 198,224 KB
実行使用メモリ 6,548 KB
最終ジャッジ日時 2024-02-09 21:45:53
合計ジャッジ時間 3,861 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 WA -
testcase_02 RE -
testcase_03 WA -
testcase_04 RE -
testcase_05 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <string.h>
#include <algorithm>
#include <array>
#include <bitset>
#include <cassert>
#include <cfloat>
#include <climits>
#include <cmath>
#include <complex>
#include <ctime>
#include <deque>
#include <fstream>
#include <functional>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <list>
#include <map>
#include <memory>
#include <queue>
#include <random>
#include <set>
#include <stack>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <utility>
#include <vector>
#include <atcoder/all>
using namespace std;
using namespace atcoder;

int main() {
    ios::sync_with_stdio(false);
    cin.tie(nullptr);
    int t;
    cin >> t;
    while(t--) {
        long long n;
        string s;
        cin >> n >> s;
        s = s.substr(0,s.size()-4)+s.substr(s.size()-3,3);
        int a = stoi(s);
        cout << floor_sum(n,1000,a+10,a+9)-floor_sum(n,1000,a,a) << "\n";
    }
}
0