結果
問題 |
No.9005 実行時間/使用メモリテスト(テスト用)
|
ユーザー |
![]() |
提出日時 | 2015-03-14 03:23:28 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 46 ms / 3,000 ms |
コード長 | 760 bytes |
コンパイル時間 | 2,087 ms |
コンパイル使用メモリ | 73,228 KB |
実行使用メモリ | 36,784 KB |
最終ジャッジ日時 | 2024-06-28 22:52:36 |
合計ジャッジ時間 | 2,529 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 5 |
ソースコード
import java.io.IOException; public class Main { public static void main(String[] args) { System.out.println(0); } static int gcd(int a, int b) { // b=0ならaを最大公約数として終了 if (b == 0) { return a; } else { // a÷bのあまりをb、元のbをaとして2.にもどる return gcd(b, a % b); } } static int nextInt() { int c; try { c = System.in.read(); while (c != '-' && (c < '0' || c > '9')) c = System.in.read(); if (c == '-') return -nextInt(); int res = 0; while (c >= '0' && c <= '9') { res = res * 10 + c - '0'; c = System.in.read(); } return res; } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } return -1; } }