Submission #201417
Source Code Expand
#include <string> #include <vector> #include<iostream> #include<cstdio> #include<cstdlib> #include<stack> #include<queue> #include<cmath> #include<algorithm> #include<functional> //-- #include<list> #include<deque> #include<bitset> #include<set> #include<map> #include<cstdio> #include<cstring> #include<sstream> #include<complex> #define X first #define Y second #define pb push_back #define rep(X,Y) for (int (X) = 0;(X) < (Y);++(X)) #define rrep(X,Y) for (int (X) = Y-1;(X) >=0;--(X)) #define all(X) (X).begin(),(X).end() #define rall(X) (X).rbegin(),(X).rend() using namespace std; typedef long long ll; typedef pair<int,int> pii; int main(){ int i,j,k; int sum=45*45; int n; cin>>n; sum-=n; for(i=1;i<10;i++){ for(j=1;j<10;j++){ if(sum==i*j) cout<<i<<" x "<<j<<endl; } } return 0; }
Submission Info
Submission Time | |
---|---|
Task | C - 九九足し算 |
User | nuip |
Language | C++ (G++ 4.6.4) |
Score | 100 |
Code Size | 874 Byte |
Status | AC |
Exec Time | 24 ms |
Memory | 928 KB |
Judge Result
Set Name | All | ||
---|---|---|---|
Score / Max Score | 100 / 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 | AC | 22 ms | 800 KB |
sample_02.txt | AC | 23 ms | 716 KB |
test_1953.txt | AC | 20 ms | 928 KB |
test_1971.txt | AC | 20 ms | 800 KB |
test_1977.txt | AC | 20 ms | 672 KB |
test_1983.txt | AC | 23 ms | 796 KB |
test_1989.txt | AC | 23 ms | 924 KB |
test_1990.txt | AC | 21 ms | 928 KB |
test_1993.txt | AC | 21 ms | 796 KB |
test_1995.txt | AC | 20 ms | 916 KB |
test_1997.txt | AC | 21 ms | 928 KB |
test_1998.txt | AC | 20 ms | 800 KB |
test_2001.txt | AC | 24 ms | 800 KB |
test_2009.txt | AC | 22 ms | 800 KB |
test_2013.txt | AC | 23 ms | 804 KB |
test_2017.txt | AC | 22 ms | 920 KB |
test_2019.txt | AC | 21 ms | 676 KB |
test_2020.txt | AC | 20 ms | 800 KB |
test_2022.txt | AC | 21 ms | 924 KB |
test_2024.txt | AC | 22 ms | 924 KB |