結果
| 問題 | No.395 永遠の17歳 |
| コンテスト | |
| ユーザー |
tohutohu_titech
|
| 提出日時 | 2016-07-15 22:48:18 |
| 言語 | C++11 (gcc 15.3.0 + boost 1.92.0) |
| 結果 |
AC
不安定
|
| 実行時間 | 1 ms / 1,000 ms |
| + 371µs | |
| コード長 | 278 bytes |
| 記録 | |
| コンパイル時間 | 823 ms |
| コンパイル使用メモリ | 171,912 KB |
| 実行使用メモリ | 6,528 KB |
| 最終ジャッジ日時 | 2026-09-10 10:29:11 |
| 合計ジャッジ時間 | 2,230 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 17 |
ソースコード
#include<bits/stdc++.h>
#define REP(i,n) for (int i=0;i<(n);i++)
#define ll long long
using namespace std;
int dx[] ={0,1,0,-1};
int dy[]= {1,0,-1,0};
int main(){
int A;
scanf("%d",&A);
int ans=0;
if(A-7<=7){
ans = -1;
}else{
ans=A-7;
}
printf("%d",ans);
}
tohutohu_titech