結果
| 問題 | No.1986 Yummy |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-01-06 19:20:43 |
| 言語 | Java (openjdk 27 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 56 ms / 2,000 ms |
| + 855µs | |
| コード長 | 969 bytes |
| 記録 | |
| コンパイル時間 | 3,604 ms |
| コンパイル使用メモリ | 86,636 KB |
| 実行使用メモリ | 45,320 KB |
| 最終ジャッジ日時 | 2026-10-02 16:16:42 |
| 合計ジャッジ時間 | 7,774 ms |
|
ジャッジサーバーID (参考情報) |
judge4_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 24 |
ソースコード
import java.util.*;
import java.io.*;
import java.math.*;
public class Main{
public static BufferedReader buff = new BufferedReader(new InputStreamReader(System.in));
public static final int INFI = Integer.MAX_VALUE;
public static final long INFL = Long.MAX_VALUE;
public static final int MOD = 1000000007;
public static PrintWriter output = new PrintWriter(System.out);
public static Scanner sc = new Scanner(System.in);
public static final int [] dy4 = {0,1,0,-1};
public static final int [] dx4 = {1,0,-1,0};
public static ArrayList<ArrayList<Integer>> list = new ArrayList<>();
public static ArrayList<Integer> answer = new ArrayList<>();
public static boolean [] visited ;
public static void main(String[] args) throws IOException{
StringTokenizer st;
//st = new StringTokenizer(buff.readLine());
int N = sc.nextInt();
output.print(N % 2 == 0?N/2:1);
output.flush();
}
}