結果
| 問題 |
No.395 永遠の17歳
|
| コンテスト | |
| ユーザー |
mine691
|
| 提出日時 | 2018-08-13 21:14:43 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 189 bytes |
| コンパイル時間 | 504 ms |
| コンパイル使用メモリ | 64,068 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-24 08:15:53 |
| 合計ジャッジ時間 | 1,215 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 15 WA * 2 |
ソースコード
#include<iostream>
using namespace std;
int main() {
int n;
cin >> n;
int ans = -1;
for (int i = 0;i < n;i++) {
if (i + 7 == n) {
ans = i;
break;
}
}
cout << ans << endl;
}
mine691