結果

問題 No.3115 One Power One Kill
コンテスト
ユーザー The Forsaking
提出日時 2025-04-18 23:05:18
言語 C++17
(gcc 15.2.0 + boost 1.90.0)
コンパイル:
g++-15 -O2 -lm -std=c++17 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
AC  
実行時間 118 ms / 2,000 ms
コード長 572 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 2,016 ms
コンパイル使用メモリ 206,596 KB
実行使用メモリ 5,632 KB
平均クエリ数 2.00
最終ジャッジ日時 2026-07-09 20:00:44
合計ジャッジ時間 2,575 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#include <bits/stdc++.h>

using namespace std;

typedef pair<int, int> pii;
typedef pair<long long, int> pli;
typedef pair<int, pair<int, int> > piii;
typedef long long ll;
const int N = 2000086, MOD = 1e9 + 7, INF = 0x3f3f3f3f;
ll res;
int n, m, cnt, w[N];
inline ll qmi(ll a, ll b, ll c) { ll res = 1; while (b) { if (b & 1) res = res * a % c; a = a * a % c; b >>= 1; } return res; }

char s[N];
int main() {
    printf("396 199\n");
    fflush(stdout);
    int x;
    scanf("%d", &x);
    if (x % 199) puts("1");
    else puts("0");
    fflush(stdout);
    return 0;
}
0