結果
問題 | No.652 E869120 and TimeZone |
ユーザー | fal_rnd |
提出日時 | 2018-02-24 00:38:38 |
言語 | Java21 (openjdk 21) |
結果 |
WA
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 2,538 bytes |
コンパイル時間 | 2,376 ms |
コンパイル使用メモリ | 85,728 KB |
実行使用メモリ | 57,656 KB |
最終ジャッジ日時 | 2023-08-22 14:32:28 |
合計ジャッジ時間 | 7,931 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 119 ms
55,792 KB |
testcase_01 | AC | 119 ms
56,032 KB |
testcase_02 | WA | - |
testcase_03 | AC | 117 ms
55,536 KB |
testcase_04 | AC | 117 ms
55,976 KB |
testcase_05 | AC | 118 ms
56,564 KB |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | AC | 117 ms
56,000 KB |
testcase_09 | AC | 117 ms
56,388 KB |
testcase_10 | AC | 117 ms
56,104 KB |
testcase_11 | AC | 116 ms
56,028 KB |
testcase_12 | AC | 117 ms
55,460 KB |
testcase_13 | WA | - |
testcase_14 | AC | 118 ms
55,472 KB |
testcase_15 | AC | 121 ms
55,944 KB |
testcase_16 | AC | 118 ms
56,256 KB |
testcase_17 | AC | 118 ms
56,028 KB |
testcase_18 | AC | 119 ms
54,140 KB |
testcase_19 | AC | 121 ms
55,696 KB |
testcase_20 | AC | 122 ms
56,048 KB |
testcase_21 | WA | - |
testcase_22 | AC | 118 ms
54,240 KB |
testcase_23 | AC | 121 ms
56,052 KB |
testcase_24 | AC | 119 ms
55,764 KB |
testcase_25 | AC | 119 ms
56,212 KB |
testcase_26 | AC | 119 ms
57,656 KB |
testcase_27 | AC | 119 ms
56,204 KB |
testcase_28 | AC | 119 ms
56,364 KB |
testcase_29 | AC | 122 ms
55,488 KB |
testcase_30 | AC | 118 ms
55,988 KB |
testcase_31 | AC | 118 ms
55,616 KB |
testcase_32 | AC | 118 ms
55,704 KB |
testcase_33 | AC | 118 ms
55,476 KB |
testcase_34 | AC | 118 ms
56,236 KB |
ソースコード
import java.util.Iterator; import java.util.PrimitiveIterator; import java.util.Scanner; import java.util.function.Supplier; import java.util.stream.IntStream; import java.util.stream.Stream; class Main{ static Scanner s=new Scanner(System.in); private void solve(){ int t=gInt()*60+gInt() +(int)((Double.parseDouble(s.next().substring(3))-9)*60); t=(t+1440)%1440; System.out.printf("%02d:%02d\n",t/60,t%60); } public static void main(String[]$){ new Main().solve(); } int gInt(){ return Integer.parseInt(s.next()); } long gLong(){ return Long.parseLong(s.next()); } double gDouble(){ return Double.parseDouble(s.next()); } SupplyingIterator<Integer> ints(int n){ return new SupplyingIterator<>(n,this::gInt); } SupplyingIterator<Long> longs(int n){ return new SupplyingIterator<>(n,this::gLong); } SupplyingIterator<Double> doubles(int n){ return new SupplyingIterator<>(n,this::gDouble); } SupplyingIterator<String> strs(int n){ return new SupplyingIterator<>(n,s::next); } Range rep(int i){ return Range.rep(i); } Range rep(int f,int t,int d){ return Range.rep(f,t,d); } Range rep(int f,int t){ return rep(f,t,1); } Range rrep(int f,int t){ return rep(f,t,-1); } IntStream REP(int v){ return IntStream.range(0,v); } IntStream REP(int l,int r){ return IntStream.rangeClosed(l,r); } IntStream INTS(int n){ return IntStream.generate(this::gInt).limit(n); } Stream<String> STRS(int n){ return Stream.generate(s::next).limit(n); } } class SupplyingIterator<T> implements Iterable<T>,Iterator<T>{ int t; Supplier<T> supplier; SupplyingIterator(int t,Supplier<T> supplier){ this.t=t; this.supplier=supplier; } @Override public Iterator<T> iterator(){ return this; } @Override public boolean hasNext(){ return t>0; } @Override public T next(){ --t; return supplier.get(); } } class Range implements Iterable<Integer>,PrimitiveIterator.OfInt{ int to,cur,d; Range(int from,int to,int d){ this.cur=from-d; this.to=to; this.d=d; } Range(int n){ this(0,n-1,1); } @Override public Iterator<Integer> iterator(){ return this; } @Override public boolean hasNext(){ return cur+d==to||(cur!=to&&(cur<to==cur+d<to)); } @Override public int nextInt(){ return cur+=d; } static Range rep(int i){ return new Range(i); } static Range rep(int f,int t,int d){ return new Range(f,t,d); } static Range rep(int f,int t){ return rep(f,t,1); } static Range rrep(int f,int t){ return rep(f,t,-1); } }