結果

問題 No.830 日本人の9割は90%
ユーザー giru_yukikogiru_yukiko
提出日時 2019-05-27 20:34:07
言語 C++11
(gcc 11.4.0)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 192 bytes
コンパイル時間 313 ms
コンパイル使用メモリ 22,176 KB
実行使用メモリ 4,372 KB
最終ジャッジ日時 2023-10-17 18:17:31
合計ジャッジ時間 1,061 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 0 ms
4,372 KB
testcase_01 AC 1 ms
4,372 KB
testcase_02 AC 1 ms
4,372 KB
testcase_03 AC 1 ms
4,372 KB
testcase_04 AC 0 ms
4,372 KB
testcase_05 AC 0 ms
4,372 KB
testcase_06 AC 1 ms
4,372 KB
testcase_07 AC 0 ms
4,372 KB
testcase_08 AC 0 ms
4,372 KB
testcase_09 AC 1 ms
4,372 KB
testcase_10 AC 1 ms
4,372 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
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);
      |         ~~~~~^~~~~~~~~~~~~~~~~~~~~~~

ソースコード

diff #

#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);
}	
0