AtCoder Beginner Contest 012

Submission #3978196

Source codeソースコード

#include<iostream>
#include<algorithm>
#include<vector>
#include<string>
#include<cmath>
#include<map>
#include<stack>
#include<queue>
#include<bitset>

#define ipair pair<int,int>
#define rep(i,n) for(i=0;i<n;i++)

using namespace std;

typedef long long int lli;
typedef vector<int> vi;

int main() {
	vector<string>s;
	int i, j, k, n, m;

	cin >> n;
	m = 2025 - n;
	
	rep(i, 10) {
		rep(j, 10) {
			if (i*j > m)
				break;
			else if (i*j == m) 
				s.push_back(to_string(i) + " x " + to_string(j));
		}
	}

	k = s.size();
	rep(i, k) {
		cout << s[i] << endl;
	}

	return 0;
}

Submission

Task問題 C - 九九足し算
User nameユーザ名 kuromegane
Created time投稿日時
Language言語 C++14 (GCC 5.4.1)
Status状態 AC
Score得点 100
Source lengthソースコード長 619 Byte
File nameファイル名
Exec time実行時間 1 ms
Memory usageメモリ使用量 256 KB

Test case

Set

Set name Score得点 / Max score Cases
All 100 / 100 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

Test case

Case name Status状態 Exec time実行時間 Memory usageメモリ使用量
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