結果
問題 | No.835 ジュース |
ユーザー | Oland |
提出日時 | 2019-06-14 21:22:01 |
言語 | Java21 (openjdk 21) |
結果 |
AC
|
実行時間 | 52 ms / 2,000 ms |
コード長 | 2,882 bytes |
コンパイル時間 | 2,282 ms |
コンパイル使用メモリ | 80,656 KB |
実行使用メモリ | 50,636 KB |
最終ジャッジ日時 | 2024-04-26 07:10:11 |
合計ジャッジ時間 | 3,281 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 51 ms
50,424 KB |
testcase_01 | AC | 51 ms
50,604 KB |
testcase_02 | AC | 52 ms
50,612 KB |
testcase_03 | AC | 49 ms
50,276 KB |
testcase_04 | AC | 52 ms
50,172 KB |
testcase_05 | AC | 50 ms
50,544 KB |
testcase_06 | AC | 50 ms
50,636 KB |
testcase_07 | AC | 49 ms
50,448 KB |
testcase_08 | AC | 51 ms
50,592 KB |
ソースコード
import java.io.*; import java.util.*; import java.util.Map.Entry; import java.util.function.Function; import java.util.stream.Collectors; @SuppressWarnings("unused") public class Main { String fileName = "input.txt"; final boolean isDebug = false; //final boolean isDebug = true; FastScanner in = new FastScanner(System.in); PrintWriter out = new PrintWriter(System.out); final int MOD = (int)1e9+7; final long INF = Long.MAX_VALUE / 2; //final int INF = Integer.MAX_VALUE / 2; //System.out.println();はつかわない!! void solve() throws Exception{ out.println((int)Math.floor(in.nextInt() * 1.5)); } /* end solve */ /* main */ public static void main(String[] args) throws Exception { new Main().m(); } void m() throws Exception { if(isDebug) in = new FastScanner(new FileInputStream(fileName)); solve(); out.flush(); } /* end main */ } /* end Main */ class FastScanner { Reader input; FastScanner() {this(System.in);} FastScanner(InputStream stream) {this.input = new BufferedReader(new InputStreamReader(stream));} int nextInt() {return (int) nextLong();} long nextLong() { try { int sign = 1; int b = input.read(); while ((b < '0' || '9' < b) && b != '-' && b != '+') { b = input.read(); } if (b == '-') { sign = -1; b = input.read(); } else if (b == '+') { b = input.read(); } long ret = b - '0'; while (true) { b = input.read(); if (b < '0' || '9' < b) return ret * sign; ret *= 10; ret += b - '0'; } } catch (IOException e) { e.printStackTrace(); return -1; } } double nextDouble() { try { double sign = 1; int b = input.read(); while ((b < '0' || '9' < b) && b != '-' && b != '+') { b = input.read(); } if (b == '-') { sign = -1; b = input.read(); } else if (b == '+') { b = input.read(); } double ret = b - '0'; while (true) { b = input.read(); if (b < '0' || '9' < b) break; ret *= 10; ret += b - '0'; } if (b != '.') return sign * ret; double div = 1; b = input.read(); while ('0' <= b && b <= '9') { ret *= 10; ret += b - '0'; div *= 10; b = input.read(); } return sign * ret / div; } catch (IOException e) { e.printStackTrace(); return Double.NaN; } } char nextChar() { try { int b = input.read(); while (Character.isWhitespace(b)) { b = input.read(); } return (char) b; } catch (IOException e) { e.printStackTrace(); return 0; } } String nextStr() { try { StringBuilder sb = new StringBuilder(); int b = input.read(); while (Character.isWhitespace(b)) { b = input.read(); } while (b != -1 && !Character.isWhitespace(b)) { sb.append((char) b); b = input.read(); } return sb.toString(); } catch (IOException e) { e.printStackTrace(); return ""; } } }