提出 #74958539
ソースコード 拡げる
#include <bits/stdc++.h>
#define popcnt(x) __builtin_popcount(x)
#define popcntll(x) __builtin_popcountll(x)
using namespace std;
using lint = long long;
using pii = pair<int, int>;
using pll = pair<lint, lint>;
template <typename T>
using vc = vector<T>;
template <typename T>
using vvc = vector<vector<T>>;
template <typename T>
inline bool chmax(T &a, T b) {
if (a < b) {
a = b;
return true;
}
return false;
}
template <typename T>
inline bool chmin(T &a, T b) {
if (a > b) {
a = b;
return true;
}
return false;
}
const double PI = acos(-1);
constexpr lint ten(int n) { return n == 0 ? 1 : ten(n - 1) * 10; }
vector<string> vec_splitter(string s) {
s += ',';
vector<string> res;
while (not s.empty()) {
res.push_back(s.substr(0, s.find(',')));
s = s.substr(s.find(',') + 1);
}
return res;
}
void debug_out(vector<string> __attribute__((unused)) args,
__attribute__((unused)) int idx,
__attribute__((unused)) int LINE_NUM) {
cerr << endl;
}
template <typename Head, typename... Tail>
void debug_out(vector<string> args, int idx, int LINE_NUM, Head H, Tail... T) {
if (idx > 0) cerr << ",";
else
cerr << "Line(" << LINE_NUM << "): ";
stringstream ss;
ss << H;
cerr << args[idx] << " = " << ss.str();
debug_out(args, idx + 1, LINE_NUM, T...);
}
#ifdef DEBUG
#define debug(...) debug_out(vec_splitter(#__VA_ARGS__), 0, __LINE__, __VA_ARGS__)
#else
#define debug(...) 417
#endif
void solve(std::istream &in, std::ostream &out) {
ios_base::sync_with_stdio(false);
in.tie(nullptr), out.tie(nullptr);
string S;
cin >> S;
int a = S[0] - '0';
int b = S[2] - '0';
cout << a * b << '\n';
}
int main() {
istream &in(std::cin);
ostream &out(std::cout);
solve(in, out);
return 0;
}
提出情報
| 提出日時 |
|
| 問題 |
A - 9x9 |
| ユーザ |
matsu__ha |
| 言語 |
C++23 (GCC 15.2.0) |
| 得点 |
100 |
| コード長 |
1963 Byte |
| 結果 |
AC |
| 実行時間 |
1 ms |
| メモリ |
3656 KiB |
ジャッジ結果
| セット名 |
Sample |
All |
| 得点 / 配点 |
0 / 0 |
100 / 100 |
| 結果 |
|
|
| セット名 |
テストケース |
| Sample |
00_sample_00.txt, 00_sample_01.txt |
| All |
00_sample_00.txt, 00_sample_01.txt, 01_test_00.txt, 01_test_01.txt, 01_test_02.txt, 01_test_03.txt, 01_test_04.txt, 01_test_05.txt, 01_test_06.txt, 01_test_07.txt, 01_test_08.txt, 01_test_09.txt, 01_test_10.txt, 01_test_11.txt, 01_test_12.txt, 01_test_13.txt, 01_test_14.txt, 01_test_15.txt, 01_test_16.txt, 01_test_17.txt, 01_test_18.txt, 01_test_19.txt, 01_test_20.txt, 01_test_21.txt, 01_test_22.txt, 01_test_23.txt |
| ケース名 |
結果 |
実行時間 |
メモリ |
| 00_sample_00.txt |
AC |
1 ms |
3644 KiB |
| 00_sample_01.txt |
AC |
1 ms |
3568 KiB |
| 01_test_00.txt |
AC |
1 ms |
3428 KiB |
| 01_test_01.txt |
AC |
1 ms |
3620 KiB |
| 01_test_02.txt |
AC |
1 ms |
3620 KiB |
| 01_test_03.txt |
AC |
1 ms |
3548 KiB |
| 01_test_04.txt |
AC |
1 ms |
3508 KiB |
| 01_test_05.txt |
AC |
1 ms |
3424 KiB |
| 01_test_06.txt |
AC |
1 ms |
3508 KiB |
| 01_test_07.txt |
AC |
1 ms |
3556 KiB |
| 01_test_08.txt |
AC |
1 ms |
3596 KiB |
| 01_test_09.txt |
AC |
1 ms |
3424 KiB |
| 01_test_10.txt |
AC |
1 ms |
3620 KiB |
| 01_test_11.txt |
AC |
1 ms |
3476 KiB |
| 01_test_12.txt |
AC |
1 ms |
3464 KiB |
| 01_test_13.txt |
AC |
1 ms |
3440 KiB |
| 01_test_14.txt |
AC |
1 ms |
3476 KiB |
| 01_test_15.txt |
AC |
1 ms |
3484 KiB |
| 01_test_16.txt |
AC |
1 ms |
3484 KiB |
| 01_test_17.txt |
AC |
1 ms |
3508 KiB |
| 01_test_18.txt |
AC |
1 ms |
3568 KiB |
| 01_test_19.txt |
AC |
1 ms |
3432 KiB |
| 01_test_20.txt |
AC |
1 ms |
3428 KiB |
| 01_test_21.txt |
AC |
1 ms |
3656 KiB |
| 01_test_22.txt |
AC |
1 ms |
3508 KiB |
| 01_test_23.txt |
AC |
1 ms |
3548 KiB |