結果
問題 | No.632 穴埋め門松列 |
ユーザー | denderaKawazu |
提出日時 | 2018-02-13 23:11:14 |
言語 | Java21 (openjdk 21) |
結果 |
AC
|
実行時間 | 119 ms / 1,000 ms |
コード長 | 1,022 bytes |
コンパイル時間 | 4,660 ms |
コンパイル使用メモリ | 72,044 KB |
実行使用メモリ | 56,148 KB |
最終ジャッジ日時 | 2023-08-21 02:19:19 |
合計ジャッジ時間 | 4,182 ms |
ジャッジサーバーID (参考情報) |
judge12 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 119 ms
55,324 KB |
testcase_01 | AC | 118 ms
56,148 KB |
testcase_02 | AC | 118 ms
55,784 KB |
testcase_03 | AC | 119 ms
55,344 KB |
testcase_04 | AC | 117 ms
55,632 KB |
testcase_05 | AC | 118 ms
56,136 KB |
ソースコード
import java.io.OutputStream; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.Scanner; /** * Built using CHelper plug-in * Actual solution is at the top */ public class Main { public static void main(String[] args) { InputStream inputStream = System.in; OutputStream outputStream = System.out; Scanner in = new Scanner(inputStream); PrintWriter out = new PrintWriter(outputStream); Task solver = new Task(); solver.solve(1, in, out); out.close(); } static class Task { public void solve(int testNumber, Scanner in, PrintWriter out) { String c1 = in.next(); String c2 = in.next(); String c3 = in.next(); String ans; if (c2.equals("?")) { ans = "14"; } else { if (c2.equals("3")) ans = "1"; else ans = "4"; } out.println(ans); } } }