結果
| 問題 |
No.296 n度寝
|
| コンテスト | |
| ユーザー |
Haijinn
|
| 提出日時 | 2017-03-30 21:41:15 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 212 bytes |
| コンパイル時間 | 85 ms |
| コンパイル使用メモリ | 20,864 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-07-07 03:13:49 |
| 合計ジャッジ時間 | 630 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 8 WA * 8 |
コンパイルメッセージ
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);
printf("%d\n",q%60);
return 0;
}
Haijinn