結果
| 問題 |
No.70 睡眠の重要性!
|
| コンテスト | |
| ユーザー |
testestest
|
| 提出日時 | 2015-08-05 12:34:54 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
WA
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 165 bytes |
| コンパイル時間 | 98 ms |
| コンパイル使用メモリ | 20,480 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-07-18 01:22:52 |
| 合計ジャッジ時間 | 466 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 5 WA * 1 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:4:1: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
4 | scanf("%d",&n);
| ^~~~~~~~~~~~~~
main.c:6:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
6 | scanf("%d:%d%d:%d",&a,&b,&c,&d);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h>
int main(){
int a,b,c,d,n,s=0;
scanf("%d",&n);
while(n--){
scanf("%d:%d%d:%d",&a,&b,&c,&d);
s+=(c-a+24)%24*60+d-b;
}
printf("%d",s);
return 0;
}
testestest