結果
| 問題 |
No.70 睡眠の重要性!
|
| コンテスト | |
| ユーザー |
kohaku_kohaku
|
| 提出日時 | 2016-11-13 22:24:09 |
| 言語 | Java (openjdk 23) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 568 bytes |
| コンパイル時間 | 2,148 ms |
| コンパイル使用メモリ | 74,136 KB |
| 実行使用メモリ | 41,484 KB |
| 最終ジャッジ日時 | 2024-11-25 22:01:57 |
| 合計ジャッジ時間 | 3,010 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | RE * 6 |
ソースコード
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
int total =0;
for(int i=0; i<N; i++){
int H = sc.nextInt();
int M = sc.nextInt();
int h = sc.nextInt();
int m = sc.nextInt();
int temp = h-H;
if(temp<0){
temp = temp +24;
}
int z = temp*60+(m-M);
total = total + z;
}
System.out.println(total);
}
}
kohaku_kohaku