結果
問題 |
No.70 睡眠の重要性!
|
ユーザー |
|
提出日時 | 2014-11-18 23:24:03 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 184 bytes |
コンパイル時間 | 353 ms |
コンパイル使用メモリ | 27,008 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2025-01-02 17:59:50 |
合計ジャッジ時間 | 903 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 6 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:4:18: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 4 | for(scanf("%d",&n);n--;){ | ~~~~~^~~~~~~~~ main.cpp:5:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 5 | scanf("%d%d%d%d",&H,&M,&h,&m); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h> int main(){ int n,H,M,h,m,r=0; for(scanf("%d",&n);n--;){ scanf("%d%d%d%d",&H,&M,&h,&m); M+=H*60,m+=h*60; r+=m-M; } printf("%d\n",r); return 0; }