結果
| 問題 |
No.296 n度寝
|
| コンテスト | |
| ユーザー |
Maeda
|
| 提出日時 | 2025-03-07 14:39:04 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 497 bytes |
| コンパイル時間 | 549 ms |
| コンパイル使用メモリ | 24,576 KB |
| 実行使用メモリ | 8,612 KB |
| 最終ジャッジ日時 | 2025-03-07 14:39:06 |
| 合計ジャッジ時間 | 924 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 16 |
ソースコード
#include <stdio.h>
void main(void){
//n度寝の回数
int n = 0;
int input = scanf("%d",&n);
//最初の目覚まし時計の時間(h:m)
int h = 0;
input = scanf("%d",&h);
int m = 0;
input = scanf("%d",&m);
//先に時間を分に直しておく
int firstTime = h*60 + m;
//printf("最初の時間を分数に変換:%d")
//アラームの感覚
int t = 0;
input = scanf("%d",&t);
firstTime = n*t + firstTime;
printf("%d\n",firstTime/60);
printf("%d\n",firstTime%60);
}
Maeda