結果
| 問題 |
No.128 お年玉(1)
|
| コンテスト | |
| ユーザー |
umashika
|
| 提出日時 | 2016-02-04 13:25:13 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 174 bytes |
| コンパイル時間 | 290 ms |
| コンパイル使用メモリ | 20,352 KB |
| 実行使用メモリ | 8,224 KB |
| 最終ジャッジ日時 | 2024-10-01 10:14:07 |
| 合計ジャッジ時間 | 6,566 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | TLE * 1 -- * 20 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:7:3: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
7 | scanf("%ld %d",&n,&m);
| ^~~~~~~~~~~~~~~~~~~~~
ソースコード
#include<stdio.h>
int main(void)
{
long int n;
int m;
int i=0;
scanf("%ld %d",&n,&m);
while(1000*i*m<=n){
i++;
}
printf("%d\n",1000*(i-1));
return 0;
}
umashika