結果

問題 No.1027 U+1F4A0
ユーザー rokahikou1rokahikou1
提出日時 2020-04-17 21:28:22
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
WA  
実行時間 -
コード長 782 bytes
コンパイル時間 765 ms
コンパイル使用メモリ 92,304 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-04-14 13:03:03
合計ジャッジ時間 1,723 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 AC 1 ms
6,940 KB
testcase_06 AC 2 ms
6,940 KB
testcase_07 AC 2 ms
6,944 KB
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 1 ms
6,944 KB
testcase_14 AC 2 ms
6,940 KB
testcase_15 AC 2 ms
6,940 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 AC 2 ms
6,940 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp: In function 'int main()':
main.cpp:28:5: warning: 'D1' is used uninitialized [-Wuninitialized]
   28 |     if(D1 < D2) {
      |     ^~
main.cpp:27:9: note: 'D1' was declared here
   27 |     int D1, D2;
      |         ^~
main.cpp:28:5: warning: 'D2' is used uninitialized [-Wuninitialized]
   28 |     if(D1 < D2) {
      |     ^~
main.cpp:27:13: note: 'D2' was declared here
   27 |     int D1, D2;
      |             ^~

ソースコード

diff #

#include <algorithm>
#include <cmath>
#include <cstdint>
#include <cstdio>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespace std;
#define rep(i, n) for(int(i) = 0; (i) < (n); (i)++)
#define FOR(i, m, n) for(int(i) = (m); (i) < (n); (i)++)
#define All(v) (v).begin(), (v).end()
#define pb push_back
#define MP(a, b) make_pair((a), (b))
using ll = long long;
using pii = pair<int, int>;
using pll = pair<ll, ll>;
const int INF = 1 << 30;
const ll LINF = 1LL << 60;
const int MOD = 1e9 + 7;

int main() {
    int D1, D2;
    if(D1 < D2) {
        cout << 8 << endl;
    } else if(D1 == D2) {
        cout << 4 << endl;
    } else {
        cout << 0 << endl;
    }
    return 0;
}
0