Skip to the content.

:heavy_check_mark: test/ITP1_4_A.test.cpp

Depends on

Code

#define PROBLEM "https://onlinejudge.u-aizu.ac.jp/courses/lesson/2/ITP1/all/ITP1_4_A"

#include <fastio/base.hpp>                   // for FASTIO, cout, cin
#include <fastio/char/write.hpp>             // for operator<<
#include <fastio/fraction/write.hpp>         // for operator<<
#include <fastio/signed/read.hpp>            // for operator>>
#include <fastio/signed/write.hpp>           // for operator<<
#include <math/fraction.hpp>                 // for Fraction
#include <templates/macro/abbrev/endl.hpp>   // for endl
#include <templates/macro/abbrev/space.hpp>  // for space
#include <templates/template.hpp>
#include <version>  // for std

using namespace std;
#define ERROR 0.00001

int main() {
    int a, b;
    cin >> a >> b;
    cout << (a / b) << space;
    cout << (a % b) << space;
    cout << Fraction(a, b) << endl;
}
#line 1 "test/ITP1_4_A.test.cpp"
#define PROBLEM "https://onlinejudge.u-aizu.ac.jp/courses/lesson/2/ITP1/all/ITP1_4_A"

#include <fastio/base.hpp>                   // for FASTIO, cout, cin
#include <fastio/char/write.hpp>             // for operator<<
#include <fastio/fraction/write.hpp>         // for operator<<
#include <fastio/signed/read.hpp>            // for operator>>
#include <fastio/signed/write.hpp>           // for operator<<
#include <math/fraction.hpp>                 // for Fraction
#include <templates/macro/abbrev/endl.hpp>   // for endl
#include <templates/macro/abbrev/space.hpp>  // for space
#include <templates/template.hpp>
#include <version>  // for std

using namespace std;
#define ERROR 0.00001

int main() {
    int a, b;
    cin >> a >> b;
    cout << (a / b) << space;
    cout << (a % b) << space;
    cout << Fraction(a, b) << endl;
}

Test cases

Env Name Status Elapsed Memory
g++ testcase_00 :heavy_check_mark: AC 5 ms 4 MB
g++ testcase_01 :heavy_check_mark: AC 5 ms 4 MB
g++ testcase_02 :heavy_check_mark: AC 4 ms 4 MB
g++ testcase_03 :heavy_check_mark: AC 4 ms 4 MB
g++ testcase_04 :heavy_check_mark: AC 5 ms 4 MB
g++ testcase_05 :heavy_check_mark: AC 4 ms 4 MB
g++ testcase_06 :heavy_check_mark: AC 4 ms 4 MB
g++ testcase_07 :heavy_check_mark: AC 5 ms 4 MB
g++ testcase_08 :heavy_check_mark: AC 5 ms 4 MB
g++ testcase_09 :heavy_check_mark: AC 5 ms 4 MB
Back to top page