結果
| 問題 | 
                            No.296 n度寝
                             | 
                    
| コンテスト | |
| ユーザー | 
                             Maeda
                         | 
                    
| 提出日時 | 2025-03-07 14:40:28 | 
| 言語 | C  (gcc 13.3.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 537 bytes | 
| コンパイル時間 | 375 ms | 
| コンパイル使用メモリ | 24,576 KB | 
| 実行使用メモリ | 8,608 KB | 
| 最終ジャッジ日時 | 2025-03-07 14:40:29 | 
| 合計ジャッジ時間 | 1,380 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge1 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| 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時%d分\n",h,m);
	printf("最初の時間を分数に変換:%d\n",firstTime);
	//アラームの感覚
	int t = 0;
	input = scanf("%d",&t);
	
	firstTime = n*t + firstTime;
	printf("%d\n",firstTime/60);
	printf("%d\n",firstTime%60);
}
            
            
            
        
            
Maeda