Submission #4017041
Source Code Expand
#include <bits/stdc++.h>
using namespace std;
using ll=long long;
using vb=vector<bool>;
using vvb=vector<vb>;
using vd=vector<double>;
using vvd=vector<vd>;
using vi=vector<int>;
using vvi=vector<vi>;
using vl=vector<ll>;
using vvl=vector<vl>;
using pll=pair<ll,ll>;
using tll=tuple<ll,ll>;
using vs=vector<string>;
#define all(a) a.begin(),a.end()
#define rall(a) a.rbegin(),a.rend()
#define rep(i,n) range(i,0,n)
#define rrep(i,n) for(int i=(n)-1;i>=0;i--)
#define range(i,a,n) for(int i=(a);i<(n);i++)
#define LINF ((ll)1ll<<60)
#define INF ((int)1<<30)
#define EPS (1e-9)
#define MOD (1000000007ll)
#define fcout(a) cout<<setprecision(a)<<fixed
#define fs first
#define sc second
#define PI (3.1415926535897932384)
int dx[]={1,0,-1,0,1,-1,-1,1},dy[]={0,1,0,-1,1,1,-1,-1};
template<class S,class T>ostream&operator<<(ostream&os,pair<S,T>p){os<<"["<<p.first<<", "<<p.second<<"]";return os;};
template<class S>auto&operator<<(ostream&os,vector<S>t){bool a=1; for(auto s:t){os<<(a?"":" ")<<s; a=0;} return os;}
template<class T> void chmax(T &a, const T &b){if(a<b)a=b;}
template<class T> void chmin(T &a, const T &b){if(a>b)a=b;}
void YN(bool b){cout<<(b?"YES":"NO")<<endl;}
void Yn(bool b){cout<<(b?"Yes":"No")<<endl;}
void yn(bool b){cout<<(b?"yes":"no")<<endl;}
int main(){
cin.tie(0);
ios::sync_with_stdio(false);
int mx=2025;
int n;
cin>>n;
n=2025-n;
range(i,1,10){
if(n!=0&&n%i==0&&n/i<10)cout<<i<<" x "<<n/i<<endl;
}
}
Submission Info
Submission Time |
|
Task |
C - 九九足し算 |
User |
makecir |
Language |
C++14 (GCC 5.4.1) |
Score |
100 |
Code Size |
1521 Byte |
Status |
AC |
Exec Time |
1 ms |
Memory |
256 KB |
Judge Result
Set Name |
All |
Score / Max Score |
100 / 100 |
Status |
|
Set Name |
Test Cases |
All |
sample_01.txt, sample_02.txt, 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 |
1 ms |
256 KB |
sample_02.txt |
AC |
1 ms |
256 KB |
test_1953.txt |
AC |
1 ms |
256 KB |
test_1971.txt |
AC |
1 ms |
256 KB |
test_1977.txt |
AC |
1 ms |
256 KB |
test_1983.txt |
AC |
1 ms |
256 KB |
test_1989.txt |
AC |
1 ms |
256 KB |
test_1990.txt |
AC |
1 ms |
256 KB |
test_1993.txt |
AC |
1 ms |
256 KB |
test_1995.txt |
AC |
1 ms |
256 KB |
test_1997.txt |
AC |
1 ms |
256 KB |
test_1998.txt |
AC |
1 ms |
256 KB |
test_2001.txt |
AC |
1 ms |
256 KB |
test_2009.txt |
AC |
1 ms |
256 KB |
test_2013.txt |
AC |
1 ms |
256 KB |
test_2017.txt |
AC |
1 ms |
256 KB |
test_2019.txt |
AC |
1 ms |
256 KB |
test_2020.txt |
AC |
1 ms |
256 KB |
test_2022.txt |
AC |
1 ms |
256 KB |
test_2024.txt |
AC |
1 ms |
256 KB |