提出 #23075335
ソースコード 拡げる
#include<bits/stdc++.h> #define rep(i,a,b) for(int i=a;i<b;i++) #define rrep(i,a,b) for(int i=a;i>=b;i--) #define fore(i,a) for(auto &i:a) #define all(x) (x).begin(),(x).end() //#pragma GCC optimize ("-O3") using namespace std; void _main(); int main() { cin.tie(0); ios::sync_with_stdio(false); _main(); } typedef long long ll; const int inf = INT_MAX / 2; const ll infl = 1LL << 60; template<class T>bool chmax(T& a, const T& b) { if (a < b) { a = b; return 1; } return 0; } template<class T>bool chmin(T& a, const T& b) { if (b < a) { a = b; return 1; } return 0; } //--------------------------------------------------------------------------------------------------- /*--------------------------------------------------------------------------------------------------- ∧_∧ ∧_∧ (´<_` ) Welcome to My Coding Space! ( ´_ゝ`) / ⌒i @hamayanhamayan0 / \ | | / / ̄ ̄ ̄ ̄/ | __(__ニつ/ _/ .| .|____ \/____/ (u ⊃ ---------------------------------------------------------------------------------------------------*/ int N, K; //--------------------------------------------------------------------------------------------------- void _main() { cin >> N >> K; int ans = 0; rep(i, 1, N + 1) rep(j, 1, K + 1) ans += i * 100 + j; cout << ans << endl; }
提出情報
提出日時 | |
---|---|
問題 | B - AtCoder Condominium |
ユーザ | hamayanhamayan |
言語 | C++ (GCC 9.2.1) |
得点 | 200 |
コード長 | 1534 Byte |
結果 | AC |
実行時間 | 8 ms |
メモリ | 3588 KiB |
ジャッジ結果
セット名 | Sample | All | ||||
---|---|---|---|---|---|---|
得点 / 配点 | 0 / 0 | 200 / 200 | ||||
結果 |
|
|
セット名 | テストケース |
---|---|
Sample | example_00.txt, example_01.txt |
All | example_00.txt, example_01.txt, test_00.txt, test_01.txt, test_02.txt, test_03.txt, test_04.txt, test_05.txt, test_06.txt, test_07.txt |
ケース名 | 結果 | 実行時間 | メモリ |
---|---|---|---|
example_00.txt | AC | 8 ms | 3516 KiB |
example_01.txt | AC | 2 ms | 3500 KiB |
test_00.txt | AC | 2 ms | 3496 KiB |
test_01.txt | AC | 2 ms | 3492 KiB |
test_02.txt | AC | 2 ms | 3508 KiB |
test_03.txt | AC | 2 ms | 3516 KiB |
test_04.txt | AC | 2 ms | 3492 KiB |
test_05.txt | AC | 3 ms | 3492 KiB |
test_06.txt | AC | 4 ms | 3588 KiB |
test_07.txt | AC | 3 ms | 3516 KiB |