結果
問題 | No.1986 Yummy |
ユーザー |
|
提出日時 | 2022-06-24 22:00:38 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 15 ms / 2,000 ms |
コード長 | 402 bytes |
コンパイル時間 | 1,874 ms |
コンパイル使用メモリ | 192,192 KB |
最終ジャッジ日時 | 2025-01-30 00:20:07 |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 24 |
ソースコード
#include <bits/stdc++.h> using namespace std; static inline void solve() { int n; cin >> n; int ans = 1; if (n % 2 == 0) { ans = n / 2; } cout << ans << '\n'; } int main() { ios_base::sync_with_stdio(0), cin.tie(0); #ifdef LOCAL int T; cin >> T; for (int tc = 1; tc <= T; tc++) { cout << "Case" << tc << ":" << '\n'; solve(); } #else solve(); #endif return 0; }