結果

問題 No.863 計算量
ユーザー toririumism
提出日時 2019-08-16 21:24:17
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 281 bytes
コンパイル時間 2,210 ms
コンパイル使用メモリ 192,084 KB
最終ジャッジ日時 2025-01-07 12:10:15
ジャッジサーバーID
(参考情報)
judge2 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 1
other AC * 10 WA * 3
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:8:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    8 |     scanf("%d\n%d", &a, &b);
      |     ~~~~~^~~~~~~~~~~~~~~~~~

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;
#define rep(i,n) for (int i=0; i<(int)(n); i++)
#define all(vec) vec.begin(), vec.end()

int main() {
    int a, b;
    scanf("%d\n%d", &a, &b);
    int TEISU = a/5000;
    if (TEISU == b/200000) printf("1\n");
    else printf("2\n");
}
0