結果
| 問題 |
No.296 n度寝
|
| コンテスト | |
| ユーザー |
A63295
|
| 提出日時 | 2015-12-18 00:50:02 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 177 bytes |
| コンパイル時間 | 172 ms |
| コンパイル使用メモリ | 20,096 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-09-16 08:15:25 |
| 合計ジャッジ時間 | 2,522 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 3 TLE * 1 -- * 12 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:4:1: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
4 | scanf ( "%d%d%d%d", &N, &H, &M, &T);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ソースコード
#include<stdio.h>
int main(void){
int N, H, M, T;
scanf ( "%d%d%d%d", &N, &H, &M, &T);
M += ( N - 1) * T;
for ( M; M < 60; H++){
M -= 60;
}
printf ("%d\n%d\n",M,H);
return 0;
}
A63295