結果
問題 | No.692 square1001 and Permutation 1 |
ユーザー |
![]() |
提出日時 | 2023-09-09 21:17:39 |
言語 | C90 (gcc 12.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 161 bytes |
コンパイル時間 | 198 ms |
コンパイル使用メモリ | 20,096 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-27 13:46:21 |
合計ジャッジ時間 | 760 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 5 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:7:18: warning: format ‘%ld’ expects argument of type ‘long int *’, but argument 2 has type ‘long long int *’ [-Wformat=] 7 | scanf("%ld", &n); | ~~^ ~~ | | | | | long long int * | long int * | %lld main.c:7:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 7 | scanf("%ld", &n); | ^~~~~~~~~~~~~~~~
ソースコード
#include<stdio.h>int main(void){long long int n;scanf("%ld", &n);if( n == 1){printf("square1001\n");}else{printf("Petr\n");}return 0;}