結果
問題 |
No.395 永遠の17歳
|
ユーザー |
![]() |
提出日時 | 2018-03-03 19:13:23 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 331 bytes |
コンパイル時間 | 485 ms |
コンパイル使用メモリ | 62,336 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-04 01:42:04 |
合計ジャッジ時間 | 1,098 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 17 |
ソースコード
// No.395 永遠の17歳 // https://yukicoder.me/problems/no/395 // #include <iostream> using namespace std; int main() { std::cin.tie(nullptr); std::ios::sync_with_stdio(false); int A; cin >> A; int ans = A - 7; if (ans <= 7) cout << -1 << endl; else cout << ans << endl; }