結果

問題 No.296 n度寝
ユーザー suppy193
提出日時 2016-04-11 11:25:15
言語 C90
(gcc 12.3.0)
結果
AC  
実行時間 1 ms / 1,000 ms
コード長 223 bytes
コンパイル時間 76 ms
コンパイル使用メモリ 20,224 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-07-07 02:45:02
合計ジャッジ時間 655 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 16
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.c: In function ‘main’:
main.c:5:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    5 |         scanf("%lld%lld%lld%lld", &n, &h, &m, &t);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

ソースコード

diff #

#include <stdio.h>

int main(void) {
	long long int n, h, m, t;
	scanf("%lld%lld%lld%lld", &n, &h, &m, &t);
	printf("%lld\n", (h + (m + t * (n - 1)) / 60) % 24); 
	printf("%lld\n", (m + t * (n - 1)) % 60); 

    return 0;
}
0