結果
| 問題 |
No.296 n度寝
|
| コンテスト | |
| ユーザー |
Haijinn
|
| 提出日時 | 2017-03-31 20:26:12 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 1,000 ms |
| コード長 | 215 bytes |
| コンパイル時間 | 168 ms |
| コンパイル使用メモリ | 20,608 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-07 04:47:24 |
| 合計ジャッジ時間 | 718 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 16 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:11:1: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
11 | scanf("%d%d%d%d",&n,&h,&m,&t);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h>
#include<stdlib.h>
int main(void)
{
int n;
int h;
int m;
int t;
int q;
int z;
scanf("%d%d%d%d",&n,&h,&m,&t);
q=h*60+m;
z=t*(n-1);
q+=z;
printf("%d\n",q/60%24);
printf("%d\n",q%60);
return 0;
}
Haijinn