We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- C++
- STL
- Print Pretty
- Discussions
Print Pretty
Print Pretty
Sort by
recency
|
172 Discussions
|
Please Login in order to post a comment
i need help it fails on test cases 6-9 which involves 1000 test cases. Here is my code.
Use format library
This is my code and its passing testcase0 but its failing in other test cases so what is the issue
include
include
using namespace std;
int main() { int T; cin >> T; cout << setiosflags(ios::uppercase); cout << setw(0xf) << internal; while(T--) { double A; cin >> A; double B; cin >> B; double C; cin >> C; int a= static_cast(A); char hex[1000]; std::sprintf(hex,"%X",a); cout<
}
Shittiest code what was that