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 |
AC |
5 ms |
4 MB |
g++ |
testcase_01 |
AC |
5 ms |
4 MB |
g++ |
testcase_02 |
AC |
4 ms |
4 MB |
g++ |
testcase_03 |
AC |
4 ms |
4 MB |
g++ |
testcase_04 |
AC |
5 ms |
4 MB |
g++ |
testcase_05 |
AC |
4 ms |
4 MB |
g++ |
testcase_06 |
AC |
4 ms |
4 MB |
g++ |
testcase_07 |
AC |
5 ms |
4 MB |
g++ |
testcase_08 |
AC |
5 ms |
4 MB |
g++ |
testcase_09 |
AC |
5 ms |
4 MB |
Back to top page