結果
| 問題 | No.1986 Yummy |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-06-24 22:00:40 |
| 言語 | C++17(clang) (clang++ 22.1.2 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 410 bytes |
| 記録 | |
| コンパイル時間 | 5,680 ms |
| コンパイル使用メモリ | 152,788 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-05-08 20:05:27 |
| 合計ジャッジ時間 | 8,796 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 24 |
ソースコード
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>
using namespace std;
using ll = long long;
int main() {
ll n;
cin >> n;
if(n % 2 == 1) {
cout << 1 << endl;
return 0;
}
cout << n / 2 << endl;
return 0;
}