Submission #202469
Source Code Expand
#include <iostream> #include <vector> #include <string> #include <set> #include <map> #include <stack> #include <queue> #include <algorithm> #include <functional> #include <limits> #include <iterator> #include <numeric> #include <cmath> #include <utility> #include <memory> using namespace std; using ll = long long; using pii = pair < int, int >; template<typename T> using lim = numeric_limits < T >; const int INF = lim<int>::max() / 2; const int MAX = 2025; int main(){ int N = NULL; cin >> N; int temp = MAX - N; vector<pii> count; for (int i = 1; i <= 9; i++){ for (int j = 1; j <= 9; j++){ if (i*j == temp){ count.emplace_back(make_pair(i, j)); } } } for (auto answer : count){ cout << answer.first << "x" << answer.second << endl; } return 0; }
Submission Info
Submission Time | |
---|---|
Task | C - 九九足し算 |
User | ads100 |
Language | C++11 (GCC 4.8.1) |
Score | 0 |
Code Size | 832 Byte |
Status | WA |
Exec Time | 28 ms |
Memory | 924 KB |
Compile Error
./Main.cpp: In function ‘int main()’: ./Main.cpp:28:10: warning: converting to non-pointer type ‘int’ from NULL [-Wconversion-null] int N = NULL; ^
Judge Result
Set Name | All | ||
---|---|---|---|
Score / Max Score | 0 / 100 | ||
Status |
|
Set Name | Test Cases |
---|---|
All | test_1953.txt, test_1971.txt, test_1977.txt, test_1983.txt, test_1989.txt, test_1990.txt, test_1993.txt, test_1995.txt, test_1997.txt, test_1998.txt, test_2001.txt, test_2009.txt, test_2013.txt, test_2017.txt, test_2019.txt, test_2020.txt, test_2022.txt, test_2024.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
sample_01.txt | WA | 23 ms | 852 KB |
sample_02.txt | WA | 23 ms | 916 KB |
test_1953.txt | WA | 23 ms | 784 KB |
test_1971.txt | WA | 23 ms | 924 KB |
test_1977.txt | WA | 24 ms | 920 KB |
test_1983.txt | WA | 23 ms | 924 KB |
test_1989.txt | WA | 25 ms | 800 KB |
test_1990.txt | WA | 22 ms | 872 KB |
test_1993.txt | WA | 28 ms | 752 KB |
test_1995.txt | WA | 26 ms | 924 KB |
test_1997.txt | WA | 24 ms | 812 KB |
test_1998.txt | WA | 25 ms | 856 KB |
test_2001.txt | WA | 24 ms | 868 KB |
test_2009.txt | WA | 23 ms | 880 KB |
test_2013.txt | WA | 23 ms | 884 KB |
test_2017.txt | WA | 24 ms | 920 KB |
test_2019.txt | WA | 24 ms | 920 KB |
test_2020.txt | WA | 24 ms | 868 KB |
test_2022.txt | WA | 23 ms | 876 KB |
test_2024.txt | WA | 22 ms | 808 KB |