結果

問題 No.8114 Prime Checker+1
ユーザー michikusamichiya
提出日時 2025-11-19 09:37:59
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 216 bytes
コンパイル時間 4,761 ms
コンパイル使用メモリ 194,236 KB
実行使用メモリ 7,716 KB
最終ジャッジ日時 2025-11-19 11:11:12
合計ジャッジ時間 4,702 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 25 WA * 5
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

#include <bits/stdc++.h>
using namespace std;
int main(void) {
	string S; cin >> S;
	int N = S.size();
	if ((S[N - 1] - '0') % 2 == 0) {
		cout << 0 << endl;
	} else {
		cout << 1 << endl;
	}
	cout << "No" << endl;
}
0