結果
| 問題 |
No.830 日本人の9割は90%
|
| コンテスト | |
| ユーザー |
giru_yukiko
|
| 提出日時 | 2019-05-27 20:34:07 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 192 bytes |
| コンパイル時間 | 184 ms |
| コンパイル使用メモリ | 22,144 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-09-17 15:34:07 |
| 合計ジャッジ時間 | 792 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 10 |
コンパイルメッセージ
main.cpp:3:1: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type]
3 | main(){
| ^~~~
main.cpp: In function ‘int main()’:
main.cpp:8:14: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
8 | fgets(buf,sizeof(buf),stdin);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h>
main(){
int percentage;
char buf[100];
//入力の命令
fgets(buf,sizeof(buf),stdin);
sscanf(buf,"%d",&percentage);
printf("%d\n",percentage*10);
return(0);
}
giru_yukiko