結果
問題 | No.9000 Hello World! (テスト用) |
ユーザー | Pravin |
提出日時 | 2021-05-31 17:15:53 |
言語 | Java21 (openjdk 21) |
結果 |
AC
|
実行時間 | 56 ms / 5,000 ms |
コード長 | 3,421 bytes |
コンパイル時間 | 2,545 ms |
コンパイル使用メモリ | 78,660 KB |
実行使用メモリ | 37,252 KB |
最終ジャッジ日時 | 2024-11-08 21:19:05 |
合計ジャッジ時間 | 3,438 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 56 ms
37,044 KB |
testcase_01 | AC | 56 ms
37,252 KB |
testcase_02 | AC | 56 ms
37,136 KB |
testcase_03 | AC | 55 ms
37,196 KB |
ソースコード
//This code is written by प्रविण शंखपाळ //package wizard; import java.io.*; import java.util.*; public class Main { public static void main(String[] args) { try { FastReader fr = new FastReader(); PrintWriter pt = new PrintWriter(System.out); int t = 1; while (t > 0) { String str = fr.next(); pt.println("Hello World!"); t--; } pt.close(); } catch ( Exception e) { return; } } static class Triple implements Comparable<Triple> { int a, b, c; Triple(int a, int b, int c) { this.a = a; this.b = b; this.c = c; } public int compareTo(Triple o) { // TODO Auto-generated method stub if (this.a != o.a) return Long.compare(this.a, o.a); else return Long.compare(this.b, o.b); // return 0; } public boolean equals(Object o) { if (o instanceof Pair) { Pair p = (Pair) o; return p.a == a && p.b == b; } return false; } } static class Pairx<Pairx> { int a; String b; Pairx(int a, String b) { this.a = a; this.b = b; } } static void merge(long arr[], int l, int m, int r) { int n1 = m - l + 1; int n2 = r - m; long L[] = new long[n1]; long R[] = new long[n2]; for (int i = 0; i < n1; ++i) L[i] = arr[l + i]; for (int j = 0; j < n2; ++j) R[j] = arr[m + 1 + j]; int i = 0, j = 0; int k = l; while (i < n1 && j < n2) { if (L[i] <= R[j]) { arr[k] = L[i]; i++; } else { arr[k] = R[j]; j++; } k++; } while (i < n1) { arr[k] = L[i]; i++; k++; } while (j < n2) { arr[k] = R[j]; j++; k++; } } static void sort(long arr[], int l, int r) { if (l < r) { int m = l + (r - l) / 2; sort(arr, l, m); sort(arr, m + 1, r); merge(arr, l, m, r); } } static class Pair implements Comparable<Pair> { int a, b; Pair(int a, int b) { this.a = a; this.b = b; } public int compareTo(Pair o) { // TODO Auto-generated method stub if (this.a != o.a) return Long.compare(this.a, o.a); else return Long.compare(this.b, o.b); // return 0; } public boolean equals(Object o) { if (o instanceof Pair) { Pair p = (Pair) o; return p.a == a && p.b == b; } return false; } } static int binarySearch(long arr[], int first, int last, long key) { int mid = (first + last) / 2; while (first <= last) { if (arr[mid] < key) { first = mid + 1; } else if (arr[mid] == key) { return mid; } else { last = mid - 1; } mid = (first + last) / 2; } return -1; // return mid; // return mid if want to find key greater than or less than arr[mid] if exact value is not given } static class FastReader { BufferedReader br; StringTokenizer st; public FastReader() { br = new BufferedReader(new InputStreamReader(System.in)); } String next() { while (st == null || !st.hasMoreElements()) { try { st = new StringTokenizer(br.readLine()); } catch (IOException e) { e.printStackTrace(); } } return st.nextToken(); } int nextInt() { return Integer.parseInt(next()); } long nextLong() { return Long.parseLong(next()); } double nextDouble() { return Double.parseDouble(next()); } String nextLine() { String str = ""; try { str = br.readLine(); } catch (IOException e) { e.printStackTrace(); } return str; } } }