結果
問題 |
No.296 n度寝
|
ユーザー |
![]() |
提出日時 | 2019-01-05 19:12:03 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 202 bytes |
コンパイル時間 | 237 ms |
コンパイル使用メモリ | 22,272 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-23 23:32:24 |
合計ジャッジ時間 | 728 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 8 WA * 8 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:6:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 6 | scanf("%d%d%d%d",&n,&h,&m,&t); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h> int main(){ int n,h,m,t,o,h2,h3,m3; scanf("%d%d%d%d",&n,&h,&m,&t); o = m + t*n-t; h2 = o/60; h3 = h + h2; m3 = o - h2*60; printf("%d\n%d",h3,m3); }