結果
| 問題 |
No.1422 Social Distance in Train
|
| コンテスト | |
| ユーザー |
tenten
|
| 提出日時 | 2021-03-15 09:32:23 |
| 言語 | Java (openjdk 23) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 339 bytes |
| コンパイル時間 | 2,541 ms |
| コンパイル使用メモリ | 73,564 KB |
| 実行使用メモリ | 37,228 KB |
| 最終ジャッジ日時 | 2024-11-06 22:45:08 |
| 合計ジャッジ時間 | 4,059 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 6 WA * 6 |
ソースコード
import java.util.*;
import java.io.*;
public class Main {
public static void main (String[] args) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int n = Integer.parseInt(br.readLine());
if (n % 2 == 0) {
System.out.println(n);
} else {
System.out.println(1);
}
}
}
tenten