結果
問題 |
No.395 永遠の17歳
|
ユーザー |
![]() |
提出日時 | 2016-07-15 22:38:31 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 427 bytes |
コンパイル時間 | 526 ms |
コンパイル使用メモリ | 70,288 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-15 04:32:22 |
合計ジャッジ時間 | 1,128 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 16 WA * 1 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:20:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 20 | scanf("%lld", &a); | ~~~~~^~~~~~~~~~~~
ソースコード
#include <iostream> #include <cstdio> #include <vector> #include <cmath> #include <cstring> #include <numeric> #include <algorithm> #include <functional> #include <array> #include <map> using namespace std; #define Getsign(n) ((n > 0) - (n < 0)) typedef vector<int> Ivec; typedef pair<int, int> Pos; int main() { long long int a; scanf("%lld", &a); if (a < 14) printf("-1\n"); else printf("%lld\n", a-7); return 0; }