結果

問題 No.2525 Great Move
ユーザー soyamash
提出日時 2023-11-03 23:07:12
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 407 bytes
コンパイル時間 728 ms
コンパイル使用メモリ 53,980 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-09-25 21:22:45
合計ジャッジ時間 1,394 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 12 WA * 14
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
using namespace std; //cin, coutを使う
int main(){
    int H, S;
    cin >> H >> S;
    if (abs(H + S) % 4 == 0) {
        cout << "Possible" << endl;
    } else if (abs(H + S) % 4 == 1) {
        cout << "Impossible" << endl;
    } else if (abs(H + S) % 4 == 2) {
        cout << "Impossible" << endl;
    } else if (abs(H + S) % 4 == 3) {
        cout << "Possible" << endl;
    }
}
0