結果
| 問題 |
No.395 永遠の17歳
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-07-05 17:34:17 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 201 bytes |
| コンパイル時間 | 602 ms |
| コンパイル使用メモリ | 69,364 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-22 00:29:36 |
| 合計ジャッジ時間 | 1,374 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 13 WA * 4 |
ソースコード
#include<iostream>
#include<algorithm>
#include<cmath>
using namespace std;
int main() {
int a;
cin >> a;
if(a<8||a%7==0) {
cout << -1 << endl;
}
else {
cout << a-7 << endl;
}
}