Submission #61373011
Source Code Expand
Copy
#include <bits/stdc++.h>using namespace std;using ll = long long;using vi = vector<int>;using vl = vector<long long>;using vs = vector<string>;using vc = vector<char>;using vb = vector<bool>;using pii = pair<int, int>;using pll = pair<long long, long long>;using vpii = vector<pair<int, int>>;using vpll = vector<pair<long long, long long>>;using vvi = vector<vector<int>>;using vvl = vector<vector<long long>>;using vvc = vector<vector<char>>;using vvb = vector<vector<bool>>;using vvvi = vector<vector<vector<int>>>;#define rep(i, n) for (int i = 0; i < (int)(n); i++)#define all(x) (x).begin(), (x).end()
#include <bits/stdc++.h> using namespace std; using ll = long long; using vi = vector<int>; using vl = vector<long long>; using vs = vector<string>; using vc = vector<char>; using vb = vector<bool>; using pii = pair<int, int>; using pll = pair<long long, long long>; using vpii = vector<pair<int, int>>; using vpll = vector<pair<long long, long long>>; using vvi = vector<vector<int>>; using vvl = vector<vector<long long>>; using vvc = vector<vector<char>>; using vvb = vector<vector<bool>>; using vvvi = vector<vector<vector<int>>>; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define all(x) (x).begin(), (x).end() #define INFTY (1 << 30) #define EPS (1e-7) #define equal(a, b) (fabs((a) - (b)) < EPS) template <typename T> inline bool chmax(T &a, T b) { return ((a < b) ? (a = b, true) : (false)); } template <typename T> inline bool chmin(T &a, T b) { return ((a > b) ? (a = b, true) : (false)); } int main() { int x; cin >> x; int ans = 0; rep(i, 9) { rep(j, 9) { int now = (i + 1) * (j + 1); if (now == x) { continue; } else { ans += now; } } } cout << ans << endl; return 0; }
Submission Info
Submission Time | |
---|---|
Task | B - 9x9 Sum |
User | pika2 |
Language | C++ 23 (gcc 12.2) |
Score | 150 |
Code Size | 1248 Byte |
Status | AC |
Exec Time | 1 ms |
Memory | 3548 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 150 / 150 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt |
All | 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt, 01_random_00.txt, 01_random_01.txt, 01_random_02.txt, 01_random_03.txt, 01_random_04.txt, 01_random_05.txt, 01_random_06.txt, 01_random_07.txt, 01_random_08.txt, 01_random_09.txt, 01_random_10.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
00_sample_00.txt | AC | 1 ms | 3480 KB |
00_sample_01.txt | AC | 1 ms | 3484 KB |
00_sample_02.txt | AC | 1 ms | 3548 KB |
01_random_00.txt | AC | 1 ms | 3480 KB |
01_random_01.txt | AC | 1 ms | 3448 KB |
01_random_02.txt | AC | 1 ms | 3460 KB |
01_random_03.txt | AC | 1 ms | 3364 KB |
01_random_04.txt | AC | 1 ms | 3444 KB |
01_random_05.txt | AC | 1 ms | 3444 KB |
01_random_06.txt | AC | 1 ms | 3444 KB |
01_random_07.txt | AC | 1 ms | 3452 KB |
01_random_08.txt | AC | 1 ms | 3484 KB |
01_random_09.txt | AC | 1 ms | 3416 KB |
01_random_10.txt | AC | 1 ms | 3484 KB |